Re: [whatwg/dom] Introduce DOM post-insertion steps (PR #1261)

> Also see https://github.com/WebKit/WebKit/blob/main/Source/WebCore/dom/ContainerNode.cpp#L302-L307 in WebKit, where we _run_ each eligible element's post-insertion steps after the children change steps, and the equivalent code in Blink https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/dom/container_node.cc;l=1071-1077;drc=9ab453c8e7d336f430c50488e8638ca802b69d80.
> 
> For script execution, WebKit even [requests that post-insertion steps are used](https://github.com/WebKit/WebKit/blob/main/Source/WebCore/dom/ScriptElement.h#L99-L104), I just don't really understand why WebKit fails tests like this then: https://wpt.fyi/results/dom/nodes/insertion-removing-steps/Node-appendChild-script-and-button-from-div.tentative.html?label=experimental&label=master&aligned. Someone like @rniwa probably knows though.

It's because in WebKit, updating of element.form also happens in the post insertion steps.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1261#issuecomment-2021495458
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/pull/1261/c2021495458@github.com>

Received on Tuesday, 26 March 2024 21:21:58 UTC