diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2021-05-06 10:37:07 +0200 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2021-05-06 10:54:29 +0200 |
commit | 7279d236364739a05657a8a614c15990eb08d0c6 (patch) | |
tree | c3dda99713d98adc4065543120d806b4624e2b3b | |
parent | 33468d7e7080e384ad703a2369003cf18b2ad91d (diff) | |
download | libxml2-7279d236364739a05657a8a614c15990eb08d0c6.tar.gz |
Fix htmlTagLookup
Fix regression introduced with b25acce8. Some users like libxslt may
call the HTML output functions on documents with uppercase tag names,
so we must keep case-insensitive string comparison.
Fixes #248.
-rw-r--r-- | HTMLparser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/HTMLparser.c b/HTMLparser.c index adefb3b5..b56363a3 100644 --- a/HTMLparser.c +++ b/HTMLparser.c @@ -1418,10 +1418,10 @@ htmlInitAutoClose(void) { static int htmlCompareTags(const void *key, const void *member) { - const char *tag = (const char *) key; + const xmlChar *tag = (const xmlChar *) key; const htmlElemDesc *desc = (const htmlElemDesc *) member; - return(strcmp(tag, desc->name)); + return(xmlStrcasecmp(tag, BAD_CAST desc->name)); } /** |