Moonchild
3a4dc8de41
Issue #3020 - Clear currentScript after running microtasks
...
Per HTML spec:
`document.currentScript` Returns null if the Document is not currently
executing a script or SVG script element (e.g., because the running
script is an event handler, or a timeout), or if the currently executing
script or SVG script element represents a module script.
---
It's ambiguous about whether, for micro tasks, it should return null.
(This section is labelled as "non-normative", as well.)
However, mainstream browsers handle this differently and don't return
null after running microtasks, so we need to clear this and not assume
null persistently, and run the auto-updater for it, regardless if
it's a module or not.
2026-03-24 20:44:13 +01:00
..
2025-01-20 10:36:23 +00:00
2025-07-22 22:39:44 +08:00
2024-11-20 20:18:19 +01:00
2024-11-18 19:15:23 +01:00
2022-09-04 11:50:24 +00:00
2026-03-20 13:26:18 +01:00
2026-02-20 09:57:46 +01:00
2025-01-18 16:15:51 +01:00
2025-01-18 16:15:51 +01:00
2024-11-18 15:00:21 +01:00
2026-03-11 14:25:20 -04:00
2024-01-07 07:34:05 -06:00
2025-02-05 22:53:46 +01:00
2024-03-26 01:24:23 +08:00
2026-01-29 00:40:09 +00:00
2025-01-18 16:15:51 +01:00
2022-09-04 11:50:24 +00:00
2025-01-18 16:15:51 +01:00
2025-01-18 16:15:51 +01:00
2024-01-05 17:12:34 +01:00
2022-09-04 11:50:24 +00:00
2022-11-25 09:37:30 -06:00
2026-02-20 09:57:46 +01:00
2024-03-26 01:24:23 +08:00
2025-01-18 16:15:51 +01:00
2024-11-20 20:18:19 +01:00
2025-07-25 11:14:35 +08:00
2025-01-18 16:15:51 +01:00
2022-09-04 11:50:24 +00:00
2024-02-04 20:15:14 +01:00
2024-02-04 20:15:14 +01:00
2022-04-01 15:23:31 +02:00
2025-04-27 20:42:29 +02:00
2026-03-10 11:19:11 +01:00
2025-01-18 16:15:51 +01:00
2025-01-18 16:15:51 +01:00
2025-01-18 16:15:51 +01:00
2025-01-18 16:15:51 +01:00
2025-01-18 16:15:51 +01:00
2024-11-17 21:38:15 +01:00
2026-02-21 18:55:44 +01:00
2022-09-04 11:50:24 +00:00
2024-01-05 17:19:51 +01:00
2022-09-04 11:50:24 +00:00
2025-01-18 16:15:51 +01:00
2018-02-02 04:16:08 -05:00
2026-03-24 20:44:13 +01:00
2020-09-23 15:52:00 +00:00
2026-01-23 23:09:58 +01:00
2020-09-23 15:52:00 +00:00
2025-01-18 16:15:51 +01:00
2023-11-11 14:27:03 +01:00
2025-06-24 12:18:13 +02:00
2026-02-11 15:11:10 -06:00
2025-06-24 12:18:13 +02:00
2022-09-04 11:50:24 +00:00
2023-11-14 17:28:39 +01:00
2026-03-22 16:48:43 -04:00
2026-03-10 11:19:11 +01:00
2026-01-14 19:50:08 +01:00
2025-03-04 20:16:54 +01:00
2025-01-17 15:12:40 +01:00
2025-01-18 16:15:51 +01:00
2025-07-07 10:43:13 -07:00
2025-04-02 12:50:14 +02:00
2025-06-29 02:10:26 -07:00
2018-02-02 04:16:08 -05:00
2024-11-20 20:18:19 +01:00