diff options
author | Andreas Kling <kling@serenityos.org> | 2022-03-02 12:26:31 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-02 12:30:15 +0100 |
commit | 1061c863f860f8b0d6a550393fbff13d990f041c (patch) | |
tree | 2ea8a01a3e367195bec66da0c8c6e7fc6f090dc7 /Userland/Libraries/LibWeb/HTML/Parser | |
parent | 1e31c1260a7cf2ef0a2dd61145afc0317d372a26 (diff) | |
download | serenity-1061c863f860f8b0d6a550393fbff13d990f041c.zip |
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. :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/Parser')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp | 4 |
1 files 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); } |