[Webkit-unassigned] [Bug 276545] New: Align script insertion semantics with HTML & DOM Standard's post-connection steps

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 12 11:48:22 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=276545

            Bug ID: 276545
           Summary: Align script insertion semantics with HTML & DOM
                    Standard's post-connection steps
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: domfarolino at gmail.com

See https://github.com/whatwg/dom/issues/808 and https://github.com/whatwg/html/pull/10188. Despite WebKit implementing the two insertion steps `insertedIntoAncestor()` [1] and `didFinishInsertingNode()` [2] for script elements, which correspond to the DOM Standard's insertion algorithm [3] and post-connection steps [4], WebKit script execution semantics do not match Chrome + Firefox's in a lot of cases. Nor do they match the proposed HTML Standard change (linked above) which align the standard to something resembling Chrome + Firefox's model with respect to nested script insertion and children changed steps.

For specifics, please see the OP in https://github.com/whatwg/html/pull/10188 which directly discusses some of this variance, as well as the tests we added in https://wpt.fyi/results/dom/nodes/insertion-removing-steps that are failing.

[1]: https://github.com/WebKit/WebKit/blob/main/Source/WebCore/dom/ScriptElement.h#L98-L104
[2]: https://github.com/WebKit/WebKit/blob/main/Source/WebCore/dom/ScriptElement.cpp#L88-L92
[3]: https://dom.spec.whatwg.org/#concept-node-insert
[4]: https://dom.spec.whatwg.org/#ref-for-concept-node-post-connection-ext%E2%91%A5

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240712/4207d1e8/attachment-0001.htm>


More information about the webkit-unassigned mailing list