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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>4565</bug_id>
          
          <creation_ts>2005-08-21 17:12:43 -0700</creation_ts>
          <short_desc>would like to pass all the HTML W3C DOM Level 1 and 2 tests in LayoutTests</short_desc>
          <delta_ts>2022-08-05 15:30:38 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>4391</dependson>
    
    <dependson>4493</dependson>
    
    <dependson>4540</dependson>
    
    <dependson>4551</dependson>
    
    <dependson>4564</dependson>
    
    <dependson>4566</dependson>
    
    <dependson>4567</dependson>
    
    <dependson>4568</dependson>
    
    <dependson>4569</dependson>
    
    <dependson>4570</dependson>
    
    <dependson>4571</dependson>
    
    <dependson>4572</dependson>
    
    <dependson>4573</dependson>
    
    <dependson>4574</dependson>
    
    <dependson>4828</dependson>
    
    <dependson>4847</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Darin Adler">darin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>andersca</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>curt.arnold</cc>
    
    <cc>emacemac7</cc>
    
    <cc>ian</cc>
    
    <cc>rniwa</cc>
    
    <cc>vicki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>17064</commentid>
    <comment_count>0</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-08-21 17:12:43 -0700</bug_when>
    <thetext>I&apos;m going to use this as a sort of &quot;master bug&quot; to track bugs covering all the W3C DOM tests we don&apos;t pass.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17074</commentid>
    <comment_count>1</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-08-21 17:44:47 -0700</bug_when>
    <thetext>So far, I have made bugs block this that cover 34 tests we don&apos;t pass. There are 11 others: 
HTMLIsIndexElement01/2/3, HTMLTableElement39, and the 7 tests that are disabled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17080</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-08-21 18:28:43 -0700</bug_when>
    <thetext>OK, now the bugs that block this cover all 38 failing tests. The 7 disabled tests still don&apos;t have bugs (that I 
know of).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17096</commentid>
    <comment_count>3</comment_count>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2005-08-22 01:37:41 -0700</bug_when>
    <thetext>Last I tried, the disabled HTMLDocument tests all passed. I think this was due to a change in the tokenizer. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17712</commentid>
    <comment_count>4</comment_count>
    <who name="Curt Arnold">curt.arnold</who>
    <bug_when>2005-08-26 14:58:22 -0700</bug_when>
    <thetext>I&apos;ve just done a diff between the DOM tests in the WebKit CVS HEAD and the corresponding tests 
generated from the W3C CVS.  The following differences were noticed:

selfhtml.js: The WebKit version has been modified to call window.layoutTestController.dumpAsTest() for 
level1/core, level2/core and level2/event and additionally calls layoutTestController.waitUntilDone and 
layoutTestController.notifyDone in level2/html.  The changes would appear to have no effect when the 
tests are run outside of the automated tests and are adequately identified as local modifications.  It 
would likely be good if these were consistent.

level2/events/dispatchEvent12: Appears the patch for bug 4491 was incompletely applied and has been 
reported as bug 4570.  Other level2/events tests differ from the W3C generated ones by whitespace 
only due to the original load of the Events tests was from a slightly out of date snapshot.

level2/html/HTMLBaseElement01 and HTMLBaseElement02: Bug 4391 has not been applied, added to 
prerequisites list for this bug.

level2/html/HTMLFormElement10.js: Has a call to layoutTestController.waitUntilDone().  Not marked as 
a WebKit modification.  Possibly unnecessary in light of changes to selfhtml.js.

In a perfect world, I think it would be better if you could push the dumpAsTest and other tweaks to 
dumpRenderTree&apos;s behavior into command line switches that the scripts would use for tests in the dom 
tree eliminating the need for WebKit mods to the tests. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17733</commentid>
    <comment_count>5</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-08-26 22:29:37 -0700</bug_when>
    <thetext>I took care of the selfhtml.js issue by making all 4 of the copies identical. Maybe some day we can come 
up with a way to run the tests without modifying this file, but in the short term there&apos;s no urgency to 
this.

I applied Curt&apos;s corrections for dispatchEvent12, HTMLBaseElement01, and HTMLBaseElement02 and 
marked the relevant bugs resolved.

I removed the change in HTMLFormElement10.js.

I re-enabled the HTMLDocument tests as suggested by Anders.

There are 3 disabled tests, HTMLFormElement10, HTMLFrameElement09, and HTMLIFrameElement11, 
and there are still no bugs covering those. I believe we have bugs covering every other failure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18544</commentid>
    <comment_count>6</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-09-03 12:59:00 -0700</bug_when>
    <thetext>There are now four test failures that are not covered by a specific bug report:

        dom/html/level2/html/HTMLFormElement10.html
        dom/html/level2/html/HTMLIFrameElement11.html
        dom/html/level2/html/HTMLFrameElement09.html
        dom/html/level2/html/HTMLIsIndexElement02.html

In addition, there are two failures covered by bug 4493:

        dom/html/level2/core/createDocument08.html
        dom/html/level2/core/createDocumentType04.html

Two failures covered by bug 4566:

        dom/html/level1/core/hc_documentinvalidcharacterexceptioncreateelement.html
        dom/html/level1/core/hc_documentinvalidcharacterexceptioncreateelement1.html

One failure covered by bug 4567:

        dom/html/level1/core/hc_elementremoveattribute.html

Four failures covered by bug 4568:

        dom/html/level1/core/hc_attrappendchild2.html
        dom/html/level1/core/hc_nodeappendchildinvalidnodetype.html
        dom/html/level1/core/hc_nodeinsertbeforeinvalidnodetype.html
        dom/html/level1/core/hc_nodereplacechildinvalidnodetype.html

Five failures covered by bug 4569:

        dom/html/level1/core/hc_attrappendchild5.html
        dom/html/level1/core/hc_attrinsertbefore6.html
        dom/html/level1/core/hc_nodeappendchildnewchilddiffdocument.html
        dom/html/level1/core/hc_nodeinsertbeforenewchilddiffdocument.html
        dom/html/level1/core/hc_nodereplacechildnewchilddiffdocument.html

And three failures covered by bug 4571:

        dom/html/level2/html/HTMLCollection07.html
        dom/html/level2/html/HTMLCollection08.html
        dom/html/level2/html/HTMLTableElement39.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18547</commentid>
    <comment_count>7</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-09-03 13:24:20 -0700</bug_when>
    <thetext>Added bug 4828 to cover the failure in HTMLIsIndexElement02.html.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18548</commentid>
    <comment_count>8</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-09-03 13:43:23 -0700</bug_when>
    <thetext>The HTMLFrameElement09 test was failing because the test didn&apos;t agree with the contents of the 
&quot;frame.html&quot; file. I fixed that in our copy.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18684</commentid>
    <comment_count>9</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-09-04 13:05:35 -0700</bug_when>
    <thetext>This is now covered by bug 4847:

        dom/html/level2/html/HTMLFormElement10.html

This was fixed by correcting mistakes in how the test directory is set up:

        dom/html/level2/html/HTMLFrameElement09.html

This is now covered by bug 4828:

        dom/html/level2/html/HTMLIsIndexElement02.html

And this is the single remaining failing test that needs its own bug report. The only reason I haven&apos;t 
written one yet is that I only know that the test is disabled, I don&apos;t know why or what&apos;s going wrong.

        dom/html/level2/html/HTMLIFrameElement11.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19102</commentid>
    <comment_count>10</comment_count>
    <who name="Vicki Murley">vicki</who>
    <bug_when>2005-09-08 11:57:24 -0700</bug_when>
    <thetext>I&apos;m looking into why dom/html/level2/html/HTMLIFrameElement11.html is disabled.  It currently reports a 
failure in both Safari and Firefox.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19110</commentid>
    <comment_count>11</comment_count>
    <who name="Vicki Murley">vicki</who>
    <bug_when>2005-09-08 12:55:59 -0700</bug_when>
    <thetext>I see now.  This is an error in the test, http://bugzilla.opendarwin.org/show_bug.cgi?id=4891.  I&apos;ve fixed 
our local version, and filed a bug with w3.org as recommended.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1889251</commentid>
    <comment_count>12</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-05 15:30:28 -0700</bug_when>
    <thetext>All dependent bugs has been closed but there were some tests mentioned in Comment 06, which were not dependent on any bug.

I looked them in the test suite from following link:

Link - https://www.w3.org/2004/04/ecmascript/level2/html/alltests.html
___

From below:

In first test case, HTMLFormElement10 - all browsers (Safari 15.6, Chrome Canary 106 and Firefox Nightly 105) passed.

Following two were not present on test-suite:

dom/html/level2/html/HTMLIFrameElement11.html &amp;         dom/html/level2/html/HTMLFrameElement09.html

While the last one &quot;HTMLIsIndexElement02&quot; failed in all browsers as mentioned for test 1.

Since all browsers are in consensus and also all dependent bugs are fixed. I am going to mark this as &quot;RESOLVED CONFIGURATION CHANGED&quot;. If I am wrong, please mark / tag this appropriately. Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>