Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test
document.currentScript
when script is moved during evaluation
In the spec before whatwg/html#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.
- Loading branch information