From 0355146af9c3392d1ea8c58e6bd09d7df9208d16 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 7 Nov 2019 21:39:15 +0100 Subject: LibHTML: Ignore case in tags :^) --- Libraries/LibHTML/Parser/HTMLParser.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Libraries/LibHTML/Parser/HTMLParser.cpp b/Libraries/LibHTML/Parser/HTMLParser.cpp index cfcd32d3ea..b98bc7cb25 100644 --- a/Libraries/LibHTML/Parser/HTMLParser.cpp +++ b/Libraries/LibHTML/Parser/HTMLParser.cpp @@ -168,13 +168,13 @@ static bool parse_html_document(const StringView& html, Document& document, Pare break; } if (ch == '!') { - if (peek(1) == 'D' - && peek(2) == 'O' - && peek(3) == 'C' - && peek(4) == 'T' - && peek(5) == 'Y' - && peek(6) == 'P' - && peek(7) == 'E') { + if (toupper(peek(1)) == 'D' + && toupper(peek(2)) == 'O' + && toupper(peek(3)) == 'C' + && toupper(peek(4)) == 'T' + && toupper(peek(5)) == 'Y' + && toupper(peek(6)) == 'P' + && toupper(peek(7)) == 'E') { i += 7; move_to_state(State::InDoctype); break; -- cgit v1.2.3