Re: How to tell Firefox NOT to do DOM-Tree creation
ExtDev <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <0e0e1b79-747d-4630-a46a-e968b0513248@c36g2000prc.googlegroups.com> |
Hi Boris, thx for your answer. On Dec 15, 10:36 pm, Boris Zbarsky <[email protected]> wrote: > You can get there by unregistering the Gecko-Content-Viewers entries > added for text/xml, application/xml, application/rdf+xml, and text/rdf. > Seehttp://mxr.mozilla.org/mozilla-central/source/layout/build/nsContentD... > for how it's done at shutdown. Sounds great. So after unregistering, the xml documents are loaded but not shown in the browser or are not loaded at all? Unfortunately I cant find any example how (and with what parameters) to call UnregisterTypes() from an extension. Is there a similar way to suppress only the internal XSLT handling? > 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. Ok, with XHR I can send a request and use that plaintext version of the requested XML document, thats fine. Now I need the XSL file. Do I have to parse the XML file and find and follow (request) the link to the XSL file myself or is there a more simple way to get the XSLT instructions? But with XMLHttpRequest.responseXML there is a parsed and DOMed version, too. So this is not really perfect for performance, right? Greetings -Dev