[Webkit-unassigned] [Bug 47768] XMLSerializer serializes BR as <BR> not <BR/>

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Oct 17 02:41:34 PDT 2010


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





--- Comment #2 from Dave Raggett <dsr at w3.org>  2010-10-17 02:41:34 PST ---
If you want to get an HTML serialization, then you can use innerHTML, but the XML serialization should be XML for interoperability with other browsers.

I did some more experiments and found that regardless of the namespace of the parent element, BR is only serialized by webkit as well formed XML if you set its namespace to be something other than "http://www.w3.org/1999/xhtml".

Thus the webkit implementation seems to be examining the namespace for each element and switching its serialization on the fly with the end result that you can't get well formed XML if there were any empty elements in the "http://www.w3.org/1999/xhtml" namespace.

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



More information about the webkit-unassigned mailing list