Closed Bug 512688 Opened 12 years ago Closed 5 years ago
Document objects should always implement HTMLDocument and SVGDocument per HTML5
Build ID: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.3a1pre) Gecko/20090826 Minefield/3.7a1pre Steps to reproduce: 1) Load the first one of the attached test cases. Actual results: document implements Document but not HTMLDocument or SVGDocument. Expected results: Expected document to implement Document, HTMLDocument and SVGDocument in all three test cases. Additional info quoted from HTML5: "All Document objects (in user agents implementing this specification) must also implement the HTMLDocument interface, available using binding-specific methods. (This is the case whether or not the document in question is an HTML document or indeed whether it contains any HTML elements at all.) Document objects must also implement the document-level interface of any other namespaces found in the document that the UA supports. For example, if an HTML implementation also supports SVG, then the Document object implements both HTMLDocument and SVGDocument."
See also bug 383983.
We should do this.
Latest spec requires that the interfaces be merged.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 897815
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.