[Webkit-unassigned] [Bug 14322] New: XMLSerializer does not output namespaces

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 22 17:09:28 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=14322

           Summary: XMLSerializer does not output namespaces
           Product: WebKit
           Version: 522+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Major
          Priority: P2
         Component: XML
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: awiner at gmail.com


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>


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list