Skip to content

Use "children insertion steps" for script#12282

Open
noamr wants to merge 1 commit intowhatwg:mainfrom
noamr:script-insertion-steps
Open

Use "children insertion steps" for script#12282
noamr wants to merge 1 commit intowhatwg:mainfrom
noamr:script-insertion-steps

Conversation

@noamr
Copy link
Collaborator

@noamr noamr commented Mar 18, 2026

This fixes a regression where script would be run as a result of child removal/mutation. Together with whatwg/dom#1460

Closes #12279

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


/infrastructure.html ( diff )
/scripting.html ( diff )

This fixes a regression where script would be run as a result of child removal/mutation.
Together with whatwg/dom#1460

Closes whatwg#12279
Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

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

I realize this matches Chromium and WebKit, but this seems like very strange behavior. Changing a Text node from "foo" to "bar" or "foobar" would not trigger this, but appending a Text node would.

Also, the template here is incorrect, right? @shannonbooth said that Firefox has different behavior.

cc @smaug---- @rniwa @domfarolino

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.

Script execution triggered on child removals/mutation from children change

2 participants