Re: XHTML document not implementing HTMLDocument when served as application/xml
Boris Zbarsky <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
Stanimir Stamenkov wrote: > Is there a reason XHTML documents served as 'Content-Type: > application/xml' not to implement the HTMLDocument interface? Yes: the document is created based on MIME type before parsing begins, so there's no way to know that you XML has an XHTML doctype at that point. > Safari and > Opera seem to create an HTMLDocument instance when served an XHTML > document that way. Do they also do that if the doctype is not XHTML? Or if the documentElement is not in the XHTML namespace? -Boris