mirror of
https://github.com/RGBCube/serenity
synced 2025-10-24 22:12:07 +00:00
Step 1 of the spec is to capture the <script> element's node document
into a local variable.
When I originally implemented this, I thought this was not necessary.
However, I realised that the script that runs can adopt the current
script element into a different document, meaning step 5.4 and 6 then
operate on the incorrect document.
Covered by this WPT:
|
||
|---|---|---|
| .. | ||
| document.body.js | ||
| document.currentScript.js | ||
| document.head.js | ||
| document.readyState.js | ||
| HTMLElement.js | ||
| HTMLScriptElement.supports.js | ||
| HTMLTableElement.js | ||
| HTMLTemplateElement.js | ||