mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-24 02:09:28 +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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user