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. :^)
This commit is contained in:
Andreas Kling 2022-03-02 12:26:31 +01:00
commit 1061c863f8
Notes: sideshowbarker 2024-07-17 18:03:52 +09:00

View file

@ -844,7 +844,7 @@ _StartOfFunction:
{ {
ON('"') 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); SWITCH_TO(AfterDOCTYPESystemIdentifier);
} }
ON(0) ON(0)
@ -856,7 +856,7 @@ _StartOfFunction:
ON('>') ON('>')
{ {
log_parse_error(); 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; m_current_token.ensure_doctype_data().force_quirks = true;
SWITCH_TO_AND_EMIT_CURRENT_TOKEN(Data); SWITCH_TO_AND_EMIT_CURRENT_TOKEN(Data);
} }