…ohtml.js, and add test cases.
* Accept null namespaceURI and qualifiedName: this creates a document containing no document element. * Set doctype.ownerDocument. * Add the doctype as a child node of the document. Also add new test cases to catch regressions on these fixes. I've added the new test cases to a new suite, level2/core-extra.js, to indicate that they test DOM Level 2 Core, but aren't part of the standard W3C test suite.
…nt/closure, detatched tests added not complete
…s where the DocumentType is valid. Won't include the internal subset (yet). Also, if the full DOCTYPE string is already known, just return it immediately without all the fuss of generating one.
…o doctype (fixes failing test case nodenormalize01).
…oesn't pass in a doctype, create a document with no doctype.