From 1061c863f860f8b0d6a550393fbff13d990f041c Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 2 Mar 2022 12:26:31 +0100 Subject: [PATCH] LibWeb: Fix issue where double-quoted doctype system ID was not captured We were storing double-quoted system ID's in the public ID field. 1% progression on ACID3. :^) --- Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp b/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp index 0ff40c371c..42a1df321b 100644 --- a/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp +++ b/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp @@ -844,7 +844,7 @@ _StartOfFunction: { ON('"') { - m_current_token.ensure_doctype_data().public_identifier = consume_current_builder(); + m_current_token.ensure_doctype_data().system_identifier = consume_current_builder(); SWITCH_TO(AfterDOCTYPESystemIdentifier); } ON(0) @@ -856,7 +856,7 @@ _StartOfFunction: ON('>') { log_parse_error(); - m_current_token.ensure_doctype_data().public_identifier = consume_current_builder(); + m_current_token.ensure_doctype_data().system_identifier = consume_current_builder(); m_current_token.ensure_doctype_data().force_quirks = true; SWITCH_TO_AND_EMIT_CURRENT_TOKEN(Data); }