Skip to content

Revise HTML update methods order of operations#60553

Merged
chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-cl-7915261
Jun 11, 2026
Merged

Revise HTML update methods order of operations#60553
chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-cl-7915261

Conversation

@chromium-wpt-export-bot

@chromium-wpt-export-bot chromium-wpt-export-bot commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Ensure a consistent order of operations for all the new HTML insertion
methods (appendHTML, prependHTML, beforeHTML, afterHTML,
replaceWithHTML)

  • The trusted types createHTML test should always come first
  • ChildNode methods should then ensure the parent can accept HTML, or throw
  • Correctly handle <template> in all the methods
    (e.g. template.appendHTML, template.content.beforeHTML)
  • Assert some edge cases in WPT (e.g. trusted types moves nodes around)

See spec PR: whatwg/html#12528

Bug: 491743369
Change-Id: I5e587ae12faad3d706e2d993bd1aa88500b3e6be
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7915261
Commit-Queue: Noam Rosenthal <nrosenthal@google.com>
Reviewed-by: Philip Jägenstedt <foolip@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1645229}

Ensure a consistent order of operations for all the new HTML insertion
methods (appendHTML, prependHTML, beforeHTML, afterHTML,
replaceWithHTML)

- The trusted types createHTML test should always come first
- ChildNode methods should then ensure the parent can accept HTML, or throw
- Correctly handle <template> in all the methods
  (e.g. `template.appendHTML`, `template.content.beforeHTML`)
- Assert some edge cases in WPT (e.g. trusted types moves nodes around)

See spec PR: whatwg/html#12528

Bug: 491743369
Change-Id: I5e587ae12faad3d706e2d993bd1aa88500b3e6be
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7915261
Commit-Queue: Noam Rosenthal <nrosenthal@google.com>
Reviewed-by: Philip Jägenstedt <foolip@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1645229}

@wpt-pr-bot wpt-pr-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit 264d3bd into master Jun 11, 2026
27 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-7915261 branch June 11, 2026 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants