Re: How to tell Firefox NOT to do DOM-Tree creation
Boris Zbarsky <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
ExtDev wrote: > You are right, it sounds painful to me, too. > Preventing the normal XML handling is the point, I think. > (For showing the result of my XSL transformation maybe I can do some > coding/transformation so that I dont need FF's XML handling at that > point.) You can get there by unregistering the Gecko-Content-Viewers entries added for text/xml, application/xml, application/rdf+xml, and text/rdf. See http://mxr.mozilla.org/mozilla-central/source/layout/build/nsContentDLF.cpp#516 for how it's done at shutdown. That said, this won't help with application/xhtml+xml, image/svg+xml, etc. Not sure whether you care. > The XMLHttpRequest object sounds interesting... maybe it fits my needs > in a script together with suppressing the normal XML loading at all. If you do use XHR, you can set the override type to text/plain to suppress parsing as XML. Then you can get the text as responseText. > Do you know how to do that suppressing of normal XML handling? See above. An extension can remove those category entries. -Boris