Bug 162803 - Fragment serialization should always use 'xml:' prefix for attributes in XML namespace
Summary: Fragment serialization should always use 'xml:' prefix for attributes in XML ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: WebExposed
Depends on:
Blocks:
 
Reported: 2016-09-30 13:00 PDT by Chris Dumez
Modified: 2016-09-30 14:05 PDT (History)
5 users (show)

See Also:


Attachments
Patch (6.61 KB, patch)
2016-09-30 13:03 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2016-09-30 13:00:59 PDT
Fragment serialization should always use 'xml:' prefix for attributes in XML namespace:
- https://html.spec.whatwg.org/#serialising-html-fragments
"""
If the attribute is in the XML namespace
-> The attribute's serialized name is the string "xml:" followed by the attribute's local name.
"""

- https://www.w3.org/TR/DOM-Parsing/#dfn-concept-xml-serialization-algorithm
"""
If ns is the XML namespace, then let qualified name be the concatenation of the string "xml:" and the value of node's localName.
"""
Comment 1 Chris Dumez 2016-09-30 13:01:13 PDT
Firefox complies with the specification.
Comment 2 Chris Dumez 2016-09-30 13:03:26 PDT
Created attachment 290370 [details]
Patch
Comment 3 WebKit Commit Bot 2016-09-30 14:05:51 PDT
Comment on attachment 290370 [details]
Patch

Clearing flags on attachment: 290370

Committed r206663: <http://trac.webkit.org/changeset/206663>
Comment 4 WebKit Commit Bot 2016-09-30 14:05:55 PDT
All reviewed patches have been landed.  Closing bug.