1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 14:04:59 +00:00

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
parent 1e31c1260a
commit 1061c863f8

View file

@ -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);
}