WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 5262
14322
XMLSerializer does not output namespaces
https://bugs.webkit.org/show_bug.cgi?id=14322
Summary
XMLSerializer does not output namespaces
Adam Winer
Reported
2007-06-22 17:09:27 PDT
Run the following page, and click on Hi. You should see an XML string with two namespaces, one on "foo", one on "bar". Instead you just see <foo><bar /></foo>. In FF 2.0, the correct output appears. (It doesn' matter if you pass in a namespace to the createDocument() call.) Reproduces in 419.3 MacOS and 522.13.1 Windows. <html> <head> <script> function testHtml() { var newDoc = document.implementation.createDocument('', '', null); var elem = newDoc.createElementNS("
http://www.example.org
", "foo"); newDoc.appendChild(elem); var elem2 = newDoc.createElementNS("
http://www.example.com
", "bar"); elem.appendChild(elem2); var serializer = new XMLSerializer(); var xmlString = serializer.serializeToString(elem); alert(xmlString); } </script> </head> <body> <div id ='someId' onclick="testHtml()">Hi</div> </body> </html>
Attachments
test case
(517 bytes, text/html)
2007-06-23 03:13 PDT
,
Alexey Proskuryakov
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2007-06-23 03:13:18 PDT
Created
attachment 15194
[details]
test case Same test as an attachment.
Alexey Proskuryakov
Comment 2
2007-06-23 03:37:22 PDT
This has been already fixed in nightly builds; you can get one for testing from <
http://nightly.webkit.org
>. *** This bug has been marked as a duplicate of
5262
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug