Skip to content

Use "children insertion steps" for script#12282

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

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

Conversation

@noamr

@noamr noamr commented Mar 18, 2026

Copy link
Copy Markdown
Contributor

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

@annevk annevk 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.

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