Skip to content

HTML parser: handle missing and empty string mostly the same for DOCTYPEs#12084

Merged
zcorpan merged 1 commit intomainfrom
annevk/parser-doctype-check
Jan 14, 2026
Merged

HTML parser: handle missing and empty string mostly the same for DOCTYPEs#12084
zcorpan merged 1 commit intomainfrom
annevk/parser-doctype-check

Conversation

@annevk
Copy link
Copy Markdown
Member

@annevk annevk commented Jan 14, 2026

In particular for DOCTYPE system and public identifiers when it comes to quirks mode determination to align with Chromium and WebKit which had a quirk (harhar) in their implementation. This does not remove the distinction entirely as it's still used for validation.

Tests: web-platform-tests/wpt#57077.

Fixes #12023.

(See WHATWG Working Mode: Changes for more details.)


/parsing.html ( diff )

…YPEs

In particular for DOCTYPE system and public identifiers when it comes to quirks mode determination to align with Chromium and WebKit which had a quirk (harhar) in their implementation. This does not remove the distinction entirely as it's still used for validation.

Tests: web-platform-tests/wpt#57077.

Fixes #12023.
@zcorpan zcorpan merged commit e7318c5 into main Jan 14, 2026
2 checks passed
@zcorpan zcorpan deleted the annevk/parser-doctype-check branch January 14, 2026 11:30
zcorpan pushed a commit to web-platform-tests/wpt that referenced this pull request Jan 14, 2026
This adds tests to verify that an empty DOCTYPE system identifier
is treated the same as a missing one for quirks mode determination,
aligning with Chromium and WebKit behavior.

See whatwg/html#12084
KurtCattiSchmidt pushed a commit to KurtCattiSchmidt/wpt-ahem that referenced this pull request Jan 21, 2026
This adds tests to verify that an empty DOCTYPE system identifier
is treated the same as a missing one for quirks mode determination,
aligning with Chromium and WebKit behavior.

See whatwg/html#12084
lando-worker bot pushed a commit to mozilla-firefox/firefox that referenced this pull request Jan 21, 2026
…empty vs missing distinction, a=testonly

Automatic update from web-platform-tests
Add tests for DOCTYPE system identifier empty vs missing

This adds tests to verify that an empty DOCTYPE system identifier
is treated the same as a missing one for quirks mode determination,
aligning with Chromium and WebKit behavior.

See whatwg/html#12084
--

wpt-commits: 507a3e65d8d8300dc40baeffcf523c48e52d4331
wpt-pr: 57077
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Consider dropping DOCTYPE system/public identifier missing/empty distinction

2 participants