RESOLVED DUPLICATE of bug 12187 15898
using document.importNode on XML node will lead to unpredictable stripping of attributes
https://bugs.webkit.org/show_bug.cgi?id=15898
Summary using document.importNode on XML node will lead to unpredictable stripping of...
Sjoerd Mulder
Reported 2007-11-08 07:20:08 PST
using importNode on XML document will lead to unpredictable stripping of attributes: Testcase: var oXml = new DOMParser().parseFromString('<div newAttr="Hello World"></div>', 'text/xml'); var oDiv = document.importNode(oXml.documentElement, true); alert(oDiv.getAttribute('newAttr') == 'Hello World');
Attachments
Testcase (501 bytes, text/html)
2007-11-08 07:20 PST, Sjoerd Mulder
no flags
Sjoerd Mulder
Comment 1 2007-11-08 07:20:45 PST
Created attachment 17123 [details] Testcase
Alexey Proskuryakov
Comment 2 2007-11-08 12:21:24 PST
See <http://bugs.webkit.org/show_bug.cgi?id=15276#c22> for a workaround. *** This bug has been marked as a duplicate of 12187 ***
Note You need to log in before you can comment on or make changes to this bug.