Bug 16636

Summary: Acid3 expects document.firstChild to be a DocType node
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ap
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Macintosh   
OS: OS X 10.4   
URL: http://www.hixie.ch/tests/evil/acid/003/NOT_READY_PLEASE_DO_NOT_USE.html

Description Eric Seidel (no email) 2007-12-28 01:45:31 PST
Acid3 expects document.firstChild to be a DocType node

http://www.hixie.ch/tests/evil/acid/003/NOT_READY_PLEASE_DO_NOT_USE.html

We pass all parts of 33 except for this check:
 (document.firstChild.nodeType == 10)) // doctype

    function () {
      // test 33: nodeType (this test also relies on accurate parsing of the document)
      if ((document.nodeType == 9) && // document
          (document.documentElement.nodeType == 1) && // element
          (document.createAttribute('test').nodeType == 2) && // attribute
          (document.getElementById('score').firstChild.nodeType == 3) && // test node
          (document.firstChild.nodeType == 10)) // doctype
        return 3;
    },
Comment 1 Alexey Proskuryakov 2007-12-28 07:00:40 PST
NOT_READY_PLEASE_DO_NOT_USE

*** This bug has been marked as a duplicate of 12751 ***