Skip to content

Commit

Permalink
Prevent execution of (some) scripts moving between documents
Browse files Browse the repository at this point in the history
This causes scripts that move between documents between the preparation
and execution phases to not execute, aligning with most browsers. Closes
#2469.

This does not address #2137, which is about scripts moving between
documents between the parsing and preparation, or parsing and execution
phases.

Tests: web-platform-tests/wpt#19632
  • Loading branch information
domenic authored Apr 21, 2020
1 parent 249553b commit 6144c0c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -57796,6 +57796,9 @@ o............A....e
href="https://github.com/whatwg/html/issues/2137">issue #2137</a>.</p>
</li>

<li><p>If <var>scriptElement</var>'s <span>preparation-time Document</span> is not equal to
<var>document</var>, then return.</p></li>

<li><p>If <span data-x="concept-script-script">the script's script</span> is null for
<var>scriptElement</var>, then <span data-x="concept-event-fire">fire an event</span> named <code
data-x="event-error">error</code> at <var>scriptElement</var>, and return.</p></li>
Expand Down

0 comments on commit 6144c0c

Please sign in to comment.