[Webkit-unassigned] [Bug 21306] New: XMLSerializer problem

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 2 06:17:28 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=21306

           Summary: XMLSerializer problem
           Product: WebKit
           Version: 525.x (Safari 3.1)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: XML
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: marcus at gratex.com


Having the following code:
var dom=new DOMParser().parseFromString("<root/>","text/xml");
var n=dom.documentElement;
var str="/>";
n.textContent=str;
this.assertEquals(n.textContent,str);
var strSer=new XMLSerializer().serializeToString(dom);

I would expect to receive the following:
<root>/<</root>
But XMLSerializer produce
<root>/></root> 

I there any explanation ?
Is there any workaround to get string representing "Well Formed XML" ?
I have not found any explanation for this yet

BTW: Firefox/2.0.0.14 produces correct (expected) result
thanx


-- 
Configure bugmail: https://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