NEW 272505
Inline module scripts should execute / signal errors in order
https://bugs.webkit.org/show_bug.cgi?id=272505
Summary Inline module scripts should execute / signal errors in order
Domenic Denicola
Reported 2024-04-10 22:33:00 PDT
See test at https://github.com/web-platform-tests/wpt/pull/45660 and spec discussion at https://github.com/whatwg/html/pull/10272. It appears WebKit delays running the script / firing the error event for a full task, instead of using microtask timing. If you believe we should use task timing instead, please let me know and we can start a spec discussion.
Attachments
Domenic Denicola
Comment 1 2024-04-11 22:36:58 PDT
We've updated the spec
Domenic Denicola
Comment 2 2024-04-11 22:40:47 PDT
(Sorry, I didn't realize that editing the title would submit my half-typed comment.) We've updated the spec PR to align more with the WebKit / Chromium behavior, and use a full task instead. The updated WPTs at https://github.com/web-platform-tests/wpt/pull/45660 show that WebKit behaves almost in line with the updated spec proposal. However, for some reason when performing this sequence of events: - Insert a script with no parse error - Insert a script with a parse error WebKit seems to first fire the error event from script 2, then execute script 1.
Radar WebKit Bug Importer
Comment 3 2024-04-17 22:33:13 PDT
Note You need to log in before you can comment on or make changes to this bug.