From c2306a5b346abc4b1d778f0071f90caec3c264ac Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 28 Nov 2020 16:15:19 +0100 Subject: Fixed tag case normalizing --- libtxt/html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3