1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-12-25 23:21:26 +03:00
libxml2/result/entity-in-ns-uri.xml.rde
Nick Wellnhofer f506ec6654 parser: Always decode entities in namespace URIs
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
2024-04-15 12:34:26 +02:00

12 lines
117 B
Plaintext

0 10 doc 0 0
0 1 doc 0 0
1 14 #text 0 1
1 1 e 1 0
1 14 #text 0 1
1 1 e 1 0
1 14 #text 0 1
0 15 doc 0 0