Either DOMParser or XMLSerializer is dropping my namespace declaration in IE9

前端 未结 2 509
天涯浪人
天涯浪人 2021-01-13 16:33

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

2条回答
  •  余生分开走
    2021-01-13 16:57

    I made a test case http://home.arcor.de/martin.honnen/javascript/2012/test2012070901.html and I can confirm that the output with IE 9 on Windows 7 is

    Input
    
    Test
    
    Output
    
    Test
    
    

    so the namespace declaration is dropped. I consider that a bug in IE 9, you might want to check connect.microsoft.com whether anything like that is already reported, and if not file it. Is anyone reading here using IE 10? What does IE 10 show?

    [edit]There is a connect issue on IE 10, probably related: https://connect.microsoft.com/IE/feedback/details/728093/xmlserializer-omits-xmlns-attributes.

提交回复
热议问题