[Webkit-unassigned] [Bug 91159] DOMImplementation::createDocument incorrectly throws a WRONG_DOCUMENT_ERR

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 18 14:04:39 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=91159





--- Comment #4 from Alexey Proskuryakov <ap at webkit.org>  2012-07-18 14:04:38 PST ---
This test doesn't check that original document no longer has a doctype after createDocument. However, this is indeed what happens in Firefox in my testing.

> I don't see why stealing a doctype is any weirder than any other node.

I guess it depends on the level of one's familiarity with the API. To me, having DOM modified when document's doctype is used as an argument in createDocument call is surprising - the form of this call doesn't suggest that original document is modified.

What does IE do? Perhaps we have an opportunity to actually improve the Web here, and not just mimic a Gecko quirk.

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



More information about the webkit-unassigned mailing list