mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-05 08:06:09 +00:00
LibHTML: Ignore case in <!DOCTYPE> tags :^)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user