commit 16af4b632b88af06bc89e97941ae7eb9e4b8ae00
parent 9b7534cd3d2be4964dfd6dbeca2111c07fb9762a
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 23 Nov 2019 13:24:49 +0100
xml.c: upper-case named-entities are invalid in XML
Named entities are case-sensitive and in XML lower-case.
(In HTML some of these are valid. Although &APOS; is invalid there too).
References:
4.6 Predefined entities: https://www.w3.org/TR/xml/#sec-predefined-ent
In the definition of "match": https://www.w3.org/TR/xml/#dt-match
"No case folding is performed."
Diffstat:
1 file changed, 0 insertions(+), 5 deletions(-)
diff --git a/xml.c b/xml.c
@@ -255,11 +255,6 @@ namedentitytostr(const char *e, char *buf, size_t bufsiz)
{ "gt;", '>' },
{ "apos;", '\'' },
{ "quot;", '"' },
- { "AMP;", '&' },
- { "LT;", '<' },
- { "GT;", '>' },
- { "APOS;", '\'' },
- { "QUOT;", '"' }
};
size_t i;