[wpt-sync] Sync PR 20775 - Test `document.currentScript` when script is moved during evaluation
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox88 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 20775 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/20775
Details from upstream follow.
Hiroshige Hayashizaki <hiroshige@chromium.org> wrote:
Test
document.currentScript
when script is moved during evaluationIn the spec before https://github.com/whatwg/html/pull/5154,
script element's node document
is re-evaluated after script evaluation,
and thus if a script is moved to another Document during its own evaluation,
currentScript
of the new document could be updated.After #5154,
currentScript
is always set/reset on the same Document,
which is expected, and tested so here.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Assignee | ||
Comment 2•4 years ago
|
||
CI Results
Ran 15 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 1 subtests
Status Summary
Firefox
OK : 1
PASS: 1
Chrome
OK : 1
PASS: 1
Safari
OK : 1
PASS: 1
Links
Comment 4•4 years ago
|
||
bugherder |
Description
•