DOMParser / XUL / Overlay issue in Firefox 4.0 Beta 4(or5)

George Johnstron <[email protected]> Thu, 16 Sep 2010 22:23:35 -0700 (PDT)
Newsgroups gmane.comp.mozilla.devel.dom
Organization http://groups.google.com
Message-ID <[email protected]>
I’m trying to create a XUL Document from a string using DOMParser
however it fails in Firefox 4.0 Beta 5 (havent tried Beta 4). This
worked fine in Firefox 4.0 Beta 3 as well as 2.x and 3.x.

Some sample code:


nsCOMPtr<nsIDOMParser> domParser =
do_CreateInstance(NS_DOMPARSER_CONTRACTID);
nsCOMPtr<nsIDOMDocument> doc;
domParser->ParseFromBuffer( documentBelow, length, “text/xml”,
getter_Addrefs(spDoc) );


<?xml version="1.0"?>
<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/
there.is.only.xul" >
<hbox>
                        :
                 XUL
                        :
</hbox>
</overlay>