mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-10-26 20:25:14 +03:00
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.
This commit is contained in:
parent
33468d7e70
commit
7279d23636
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user