You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
It's possible that 'retrieve a preferred prefix string' returns a wrong prefix for the specified namespace #45
https://w3c.github.io/DOM-Parsing/#dfn-retrieving-a-preferred-prefix-string
WPT domparsing/XMLSerializer-serializeToString.html has a test case for this behavior."Check if an attribute with namespace and no prefix is serialized with the nearest-declared prefix even if the prefix is assigned to another namespace."
If we follow the current specification, 'retrieve a preferred prefix string' for name attribute choses q prefix because q is in the list for u1 namespace. However, namespace for q is u2 on the element. The serialization result would be <el1 ...><el2 xmlns:q="u2" q:name="v"/></el1>
Before we add prefix and namespace to a map, we need to remove the prefix associated to another namespace from the map.
Activity
Address XML serialization prefix issues unresolved in spec