Closed Bug 512688 Opened 15 years ago Closed 9 years ago

Document objects should always implement HTMLDocument and SVGDocument per HTML5

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 897815

People

(Reporter: hsivonen, Unassigned)

References

()

Details

(Keywords: html5)

Attachments

(3 files)

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."
We should do this.
Latest spec requires that the interfaces be merged.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: