Skip to content

Add runScripts to SetHTMLUnsafeOptions#12495

Open
noamr wants to merge 4 commits into
whatwg:mainfrom
noamr:run-scripts
Open

Add runScripts to SetHTMLUnsafeOptions#12495
noamr wants to merge 4 commits into
whatwg:mainfrom
noamr:run-scripts

Conversation

@noamr
Copy link
Copy Markdown
Collaborator

@noamr noamr commented May 27, 2026

When runScripts is true, scripts are executed after the DOM is updated. This uses the "scripting mode" mechanism used by createContextualFragment.

Closes #10090

(See WHATWG Working Mode: Changes for more details.)


/dom.html ( diff )
/dynamic-markup-insertion.html ( diff )

noamr added 3 commits May 27, 2026 16:15
When true, scripts are executed after the DOM is updated.
This uses the "scripting mode" mechanism used by `createContextualFragment`.

Closes whatwg#10090
@noamr
Copy link
Copy Markdown
Collaborator Author

noamr commented May 27, 2026

Re multiple implementer support - I've filed WebKit/standards-positions#629 and
mozilla/standards-positions#1370 for the whole picture of HTML updates, which should cover this as well. cc @annevk @zcorpan .

Comment thread source Outdated
Comment thread source Outdated
@noamr noamr changed the title Add runScripts to SetHTMLUnsafeOptions. Add runScripts to SetHTMLUnsafeOptions May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Ability to configure whether script elements should execute for setHTMLUnsafe()

2 participants