If the DocumentType node does not have a Document associated with it, as in cases where you just created one from the DOMImplementation object, webkit crashes reliably. This is a regression from the current shipping Safari.
Created attachment 11765 [details] testcase Testcase. This will cause your browser to crash!
Created attachment 11766 [details] another testcase Another testcase that will crash ToT.
Created attachment 11767 [details] patch
Comment on attachment 11767 [details] patch + if (node->nodeType() == Node::DOCUMENT_TYPE_NODE && !node->document()) { It's true that only the DocumentType node can have a NULL document, but I don't see any need to test for the node being a DocumentType node. !node->document() should do. r=me
Landed in r18085.
Mass moving XML DOM bugs to the "DOM" Component.