Either DOMParser or XMLSerializer is dropping my namespace declaration in IE9

Ludacrism2

New Member
So I think there are probably cleaner solutions than what I am doing anyway, but I'm wondering if this is a known issue, if there's something obvious I'm doing wrong, etc... For reasons not worth describing, I have some Javascript code that, in one possible path, is loading XML from a string using DOMParser, then serializing it back to a string with XMLSerializer. The XML document is an XSL stylesheet. There are two xmlns elements in the main xsl:stylesheet tag: One which declares the xsl namespace, and another which declares a custom namespace that I use. (Call it "foo")In IE9, at least, when I get the output back from the round trip through DOMParser, the xmlns:xsl element is still there, but the xmlns:foo element is missing. Is this expected behavior? What am I missing?
 
Back
Top