Skip to content

Test that Fragment scripting mode leaves force async true on external scripts - #63708

Merged
zcorpan merged 1 commit into
masterfrom
noamr/fragment-force-async
Oct 20, 2026
Merged

zcorpan merged 1 commit into
masterfrom
noamr/fragment-force-async

Conversation

@noamr

@noamr noamr commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Tests for whatwg/html#13079 and whatwg/html#13080:

  • domparsing/createContextualFragment-external-scripts-async.html: verifies that <script> elements created by createContextualFragment() have script.async === true before insertion and that external scripts without async execute asynchronously once connected.
  • domparsing/html-unsafe-external-scripts-async.html: verifies the same behavior for {set,append,prepend,before,after,replaceWith}HTMLUnsafe() with { runScripts: true } on connected elements, disconnected elements, and ShadowRoot.
  • domparsing/unsafe-and-trusted-types-external-scripts-async.html: verifies the same behavior for innerHTML, outerHTML, insertAdjacentHTML(), and *HTMLUnsafe() when a Trusted Types default policy's createParserOptions enables runScripts: true.

@wpt-pr-bot
wpt-pr-bot requested review from ChrisParis and jdm October 15, 2026 13:14
@noamr
noamr force-pushed the noamr/fragment-force-async branch 2 times, most recently from f401841 to 4ea1669 Compare October 17, 2026 07:33

@zcorpan zcorpan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM but needs a rebase.

@noamr
noamr force-pushed the noamr/fragment-force-async branch from 4ea1669 to 76011a3 Compare October 19, 2026 10:21
@noamr

noamr commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

LGTM but needs a rebase.

Thanks! Rebased.

@zcorpan
zcorpan merged commit ee3cbb5 into master Oct 20, 2026
28 checks passed
@zcorpan
zcorpan deleted the noamr/fragment-force-async branch October 20, 2026 09:07
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.

4 participants