Skip to content

Call parseHTML/Unsafe on document.#289

Merged
mozfreddyb merged 1 commit intoWICG:mainfrom
otherdaniel:parseHTML-document
May 14, 2025
Merged

Call parseHTML/Unsafe on document.#289
mozfreddyb merged 1 commit intoWICG:mainfrom
otherdaniel:parseHTML-document

Conversation

@otherdaniel
Copy link
Collaborator

@otherdaniel otherdaniel commented May 12, 2025

This clarifies that parseHTML and parseHTMLUnsafe operate on the document (which is its own root node).
Allow DocumentType nodes in sanitize core.

WPT tests are in web-platform-tests/wpt#52406
Fixes: #288


Preview | Diff

lando-prod-mozilla bot pushed a commit to mozilla-firefox/firefox that referenced this pull request May 13, 2025
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request May 13, 2025
@mozfreddyb mozfreddyb merged commit 50ed6b6 into WICG:main May 14, 2025
2 checks passed
github-actions bot added a commit that referenced this pull request May 14, 2025
SHA: 50ed6b6
Reason: push, by mozfreddyb

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request May 14, 2025
Implements WICG/sanitizer-api#289

Differential Revision: https://phabricator.services.mozilla.com/D249034

UltraBlame original commit: c542d5f7eb5f9679132aca26973e1c44b9df9fca
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request May 14, 2025
Implements WICG/sanitizer-api#289

Differential Revision: https://phabricator.services.mozilla.com/D249034

UltraBlame original commit: c542d5f7eb5f9679132aca26973e1c44b9df9fca
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request May 14, 2025
Implements WICG/sanitizer-api#289

Differential Revision: https://phabricator.services.mozilla.com/D249034

UltraBlame original commit: c542d5f7eb5f9679132aca26973e1c44b9df9fca
@otherdaniel otherdaniel deleted the parseHTML-document branch October 1, 2025 14:29
mozfreddyb added a commit to mozfreddyb/sanitizer-api that referenced this pull request Oct 31, 2025
mozfreddyb added a commit to mozfreddyb/sanitizer-api that referenced this pull request Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document.parseHTML parsing requires the <body> to always be allowed to be useful

4 participants