Quantcast

[Bug 22960] New: Document, XMLDocument, HTMLDocument, oh my

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 22960] New: Document, XMLDocument, HTMLDocument, oh my

Bugzilla from bugzilla@jessica.w3.org
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: [hidden email]
          Reporter: [hidden email]
        QA Contact: [hidden email]
                CC: [hidden email], [hidden email]

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.

Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 22960] Document, XMLDocument, HTMLDocument, oh my

Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=22960

Anne <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |MOVED

--- Comment #7 from Anne <[hidden email]> ---
https://github.com/whatwg/dom/issues/221
https://github.com/whatwg/dom/issues/278

It seems engines are slowly merging these. At the end of that process we might
have to do some additional cleanup, but that'll be filed as follow up issues.

--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...