mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-12-25 23:21:26 +03:00
f506ec6654
Also decode entities in namespace URIs if entity substitution wasn't requested. This should fix some corner cases when comparing namespace URIs. The Namespaces in XML 1.0 spec says: > In a namespace declaration, the URI reference is the normalized value > of the attribute, so replacement of XML character and entity > references has already been done before any comparison. Make the serialization code escape special characters in namespace URIs like in attribute values. This fixes serialization if entities were substituted when parsing. Fixes https://gitlab.gnome.org/GNOME/libxslt/-/issues/106
9 lines
151 B
XML
9 lines
151 B
XML
<?xml version="1.0"?>
|
|
<!DOCTYPE doc [
|
|
<!ENTITY e "-">
|
|
]>
|
|
<doc>
|
|
<e xmlns="foo:x&x&x'x-x"/>
|
|
<e xmlns:ns="foo:x&x&x'x-x"/>
|
|
</doc>
|