HTML parser: handle missing and empty string mostly the same for DOCTYPEs#12084
Merged
HTML parser: handle missing and empty string mostly the same for DOCTYPEs#12084
Conversation
…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
approved these changes
Jan 14, 2026
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
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 )