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
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.
The text was updated successfully, but these errors were encountered:
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 chosesq
prefix becauseq
is in the list foru1
namespace. However, namespace forq
isu2
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.
The text was updated successfully, but these errors were encountered: