https://www.w3.org/Bugs/Public/show_bug.cgi?id=22960
Bug ID: 22960
Summary: Document, XMLDocument, HTMLDocument, oh my
Classification: Unclassified
Product: WebAppsWG
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DOM
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected], [email protected]
The html and dom specs only have Document and XMLDocument. This does not match
reality where we actually have HTMLDocument as well.
WebKit/Blink:
XMLDocument === Document // true
HTMLDocument.prototype.__proto__ === Document.prototype // true
SVGDocument.prototype.__proto__ === Document.prototype // true
document.implementation.createDocument(null, 'root', null) // Document
document.implementation.createDocument('http://www.w3.org/1999/xhtml/', 'html',
null) // Document
document.implementation.createDocument('http://www.w3.org/2000/svg', 'svg',
null) // SVGDocument
document.implementation.createHTMLDocument('title') // HTMLDocument
Gecko:
XMLDocument.prototype.__proto__ === Document.prototype // true
HTMLDocument.prototype.__proto__ === Document.prototype // true
SVGDocument.prototype.__proto__ === Document.prototype // true
document.implementation.createDocument(null, 'root', null) // XMLDocument
document.implementation.createDocument('http://www.w3.org/1999/xhtml/', 'html',
null) // XMLDocument
document.implementation.createDocument('http://www.w3.org/2000/svg', 'svg',
null) // XMLDocument
document.implementation.createHTMLDocument('title') // HTMLDocument
IE10:
typeof XMLDocument // 'undefined'
typeof HTMLDocument // 'undefined'
typeof SVGDocument // 'undefined'
document.implementation.createDocument(null, 'root', null) // Document
document.implementation.createDocument('http://www.w3.org/1999/xhtml/', 'html',
null) // Document
document.implementation.createDocument('http://www.w3.org/2000/svg', 'svg',
null) // Document
document.implementation.createHTMLDocument('title') // Document
IE11:
XMLDocument.prototype.__proto__ === Document.prototype // true
HTMLDocument.prototype.__proto__ === Document.prototype // true
typeof SVGDocument // 'undefined'
document.implementation.createDocument(null, 'root', null) // XMLDocument
document.implementation.createDocument('http://www.w3.org/1999/xhtml/', 'html',
null) // XMLDocument
document.implementation.createDocument('http://www.w3.org/2000/svg', 'svg',
null) // XMLDocument
document.implementation.createHTMLDocument('title') // HTMLDocument
It is unclear if there is a way to create an SVGDocument in IE and Gecko.
--
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.