[Webkit-unassigned] [Bug 17091] New: doctype.ownerDocument is null after creation (Acid3 bug)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 30 00:53:21 PST 2008


http://bugs.webkit.org/show_bug.cgi?id=17091

           Summary: doctype.ownerDocument is null after creation (Acid3 bug)
           Product: WebKit
           Version: 525+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: eric at webkit.org


doctype.ownerDocument is null after creation (Acid3 bug)

This should be an easy fix.

Test 98: expected: [object HTMLDocument], got: null - doctype's ownerDocument
was wrong after creation

    function () {
      // test 98: XHTML and the DOM
      // (special test)
      var doctype = document.implementation.createDocumentType("html",
"-//W3C//DTD XHTML 1.0 Strict//EN",
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd");
      assertEquals(doctype.ownerDocument, document, "doctype's ownerDocument
was wrong after creation");
      var doc =
document.implementation.createDocument("http://www.w3.org/1999/xhtml", "html",
doctype);
     
doc.documentElement.appendChild(doc.createElementNS("http://www.w3.org/1999/xhtml",
"head"));
     
doc.documentElement.appendChild(doc.createElementNS("http://www.w3.org/1999/xhtml",
"body"));
      var t = doc.createElementNS("http://www.w3.org/1999/xhtml", "title");
      doc.documentElement.firstChild.appendChild(t);
      // ok we have a conforming XHTML1 doc in |doc| now.
      assertEquals(doctype.ownerDocument, doc, "doctype's ownerDocument didn't
change when it was assigned to another document");
      assertEquals(doc.title, "", "document had unexpected title");
      t.textContent = "Sparrow";
      assertEquals(doc.title, "Sparrow", "document.title did not update
dynamically");
      doc.body.appendChild(doc.createElementNS("http://www.w3.org/1999/xhtml",
"form"));
      assertEquals(doc.forms.length, 1, "document.forms not updated after
inserting a form");
      return 7;
    },


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list