<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>13956</bug_id>
          
          <creation_ts>2011-08-29 18:24:32 +0000</creation_ts>
          <short_desc>Port tests to a form usable by browsers</short_desc>
          <delta_ts>2011-09-07 19:15:49 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - HTML Editing APIs</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>14061</blocked>
    
    <blocked>14063</blocked>
    
    <blocked>14065</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Aryeh Gregor">ayg</reporter>
          <assigned_to name="Aryeh Gregor">ayg</assigned_to>
          <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact name="HTML Editing APIs spec bugbot">sideshowbarker+html-editing-api</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>55996</commentid>
    <comment_count>0</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-08-29 18:24:32 +0000</bug_when>
    <thetext></thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56225</commentid>
    <comment_count>1</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-09-02 22:19:45 +0000</bug_when>
    <thetext>First stab:

http://aryeh.name/gitweb.cgi?p=editing;a=commitdiff;h=eeaedb93
http://aryeh.name/gitweb.cgi?p=editing;a=commitdiff;h=69d2d303

You can run the tests here:

http://aryeh.name/spec/editing/conformancetest/runtest.html

The expected results are generated here:

http://aryeh.name/spec/editing/conformancetest/gentest.html

Documentation is in the spec:

http://aryeh.name/tmp/editing/editing.html#tests


Issues to work out still:

* Tests don&apos;t really work at all in IE or Opera (whoops).
* They don&apos;t test queryCommand*() yet.
* Test that DOMs match, not just innerHTML.  (But this might require fixups in the algorithms to merge text nodes or such, maybe not worth it.)
* Try to produce less confusing failure messages when style normalization kicks in.  I have to normalize style=&quot;&quot; attributes to work around the fact that the serialization format isn&apos;t actually standardized meaningfully, but this shouldn&apos;t be reflected in the failure messages.
* Make sure expected results start getting generated as they should for the unserializable cases where it&apos;s just browser bugs (like &lt;xmp&gt; in Gecko, or &lt;pre&gt; followed by newline in Gecko/WebKit).
* Review browser test failures to unearth further bugs.

But it&apos;s a start.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56226</commentid>
    <comment_count>2</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-09-02 22:41:36 +0000</bug_when>
    <thetext>Also should remove the dependency in runtest.html on correct HTML5 serialization.  It causes lots of noisy failures in Opera (presumably IE too) because it omits closing tags when serializing the same DOM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56480</commentid>
    <comment_count>3</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-09-07 19:15:49 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; * Tests don&apos;t really work at all in IE or Opera (whoops).

Filed bug 14063.

&gt; * They don&apos;t test queryCommand*() yet.

Filed bug 14065.

&gt; * Test that DOMs match, not just innerHTML.  (But this might require fixups in
&gt; the algorithms to merge text nodes or such, maybe not worth it.)

I&apos;m not going to try this for now.  We&apos;d need some way of serializing a DOM perfectly, or else make sure every DOM really really serializes correctly (like by throwing normalize() into execCommand() someplace).

&gt; * Try to produce less confusing failure messages when style normalization kicks
&gt; in.  I have to normalize style=&quot;&quot; attributes to work around the fact that the
&gt; serialization format isn&apos;t actually standardized meaningfully, but this
&gt; shouldn&apos;t be reflected in the failure messages.

http://aryeh.name/gitweb.cgi?p=editing;a=commitdiff;h=2b19002f

&gt; * Make sure expected results start getting generated as they should for the
&gt; unserializable cases where it&apos;s just browser bugs (like &lt;xmp&gt; in Gecko, or
&gt; &lt;pre&gt; followed by newline in Gecko/WebKit).

Filed bug 14061.

&gt; * Review browser test failures to unearth further bugs.

This will be an ongoing effort.

Marking fixed.  Will work on followups.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>