aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Borner2020-11-28 16:15:19 +0100
committerMarvin Borner2020-11-28 19:14:14 +0100
commitc2306a5b346abc4b1d778f0071f90caec3c264ac (patch)
treeac05bd63046dc9d44aa172cb228d14709daffde6
parent344d077a56ac21f4e63bcf0ff4eff234a4ac19e1 (diff)
Fixed tag case normalizing
-rw-r--r--libtxt/html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtxt/html.c b/libtxt/html.c
index 1d736b7..ae50ed2 100644
--- a/libtxt/html.c
+++ b/libtxt/html.c
@@ -86,7 +86,7 @@ static struct dom *generate_dom(char *data, u32 length)
memcpy(&name, (u8 *)buffer + token->start_pos,
token->end_pos - token->start_pos);
name[token->end_pos - token->start_pos] = '\0';
- assert(current && !strcmp(name, current->tag));
+ assert(current && !strcmp(normalize_tag_name(name), current->tag));
current = current->parent;
break;
case XML_CHARACTER: