Page MenuHomePhabricator

Bug 1965254 [wpt PR 52406] - [Sanitizer] Add parseHTML testcases, and fix DOCTYPE handling., a=testonly
ClosedPublic

Authored by wptsync on May 14 2025, 2:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 9, 2:36 PM
Unknown Object (File)
Sun, Apr 5, 1:52 PM
Unknown Object (File)
Sat, Apr 4, 7:32 PM
Unknown Object (File)
Fri, Apr 3, 8:56 PM
Unknown Object (File)
Feb 20 2026, 12:51 PM
Unknown Object (File)
Oct 16 2025, 9:12 AM
Unknown Object (File)
Jun 25 2025, 9:11 PM
Unknown Object (File)
Jun 25 2025, 10:50 AM
Subscribers
None

Details

Summary

Automatic update from web-platform-tests
[Sanitizer] Add parseHTML testcases, and fix DOCTYPE handling.

Add WPT testcases for parseHTML + parseHTMLUnsafe.

Fix <!DOCTYPE> handling, as a follow-up to issue #288 / PR #285.
Previously, it was assumed Doc-Type nodes couldn't make it into
the sanitizer implementation; but with the change to parseHTML
context they can.

Spec: https://github.com/WICG/sanitizer-api/issues/288
Spec: https://github.com/WICG/sanitizer-api/pull/285
Bug: 356601280
Change-Id: Iec797b929eb3b90d5f08318bb28964d2f683acb4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6523521
Reviewed-by: Yifan Luo <[email protected]>
Commit-Queue: Daniel Vogelheim <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1457595}

wpt-commits: 95a60666dc001951821439078be97c0bcb421476
wpt-pr: 52406

Diff Detail

Event Timeline

phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.
This revision was not accepted when it landed; it landed in state Needs Review.May 14 2025, 4:03 PM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.