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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Oct 17 11:49:46 PDT 2010


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





--- Comment #3 from Alexey Proskuryakov <ap at webkit.org>  2010-10-17 11:49:46 PST ---
Created an attachment (id=70980)
 --> (https://bugs.webkit.org/attachment.cgi?id=70980&action=review)
XHTML test case

> If you want to get an HTML serialization, then you can use innerHTML

This is not accurate in XML documents per HTML5. See <http://www.whatwg.org/specs/web-apps/current-work/multipage/apis-in-html-documents.html#innerhtml>:

-----------------------------
On getting, if the node's document is an HTML document, then the attribute must return the result of running the HTML fragment serialization algorithm on the node; otherwise, the node's document is an XML document, and the attribute must return the result of running the XML fragment serialization algorithm on the node instead (this might raise an exception instead of returning a string).
-----------------------------

So, innerHTML changes its behavior depending on what's being serialized.

>  but the XML serialization should be XML for interoperability with other browsers.

There is no dispute about that being a strong argument for adopting Firefox behavior.

> 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".

This is not what I'm seeing on the attached test case.

-- 
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