* 仕様書

[REFS[
- [2] [CITE[HTML Standard]]
]REFS]

* 意味

[3] [DFN[[RUBYB[活性スクリプト]@en[active script]]]]は、次のものです [SRC[>>2]]。

[FIG(steps)[
= [4] [VAR[記録]]を、 [CODE[GetActiveScriptOrModule]] の結果に設定します。
= [5] [VAR[記録]]が [CODE[null]] の場合、
== [6] [CODE[null]] を返します。
= [7] それ以外の場合、
== [8] [VAR[記録]]の [F(ss)[HostDefined]] を返します。
]FIG]

[9] [[活性スクリプト]]は、[[イベントループ]]ごとに存在します。

[11] [CODE[EnqueueJob]] で参照されます。

* 歴史

[1] [CITE@en[Ensure there is an active script while running JS jobs]]
([[domenic]]著, [TIME[2017-11-18 01:48:43 +09:00]])
<https://github.com/whatwg/html/commit/cc3fcc87a7c6f8783efa327b449d7381a0e0303d>

[10] [CITE@en[Ensure there is an active script while running JS jobs by domenic · Pull Request #3163 · whatwg/html]]
([TIME[2017-11-18 16:38:28 +09:00]])
<https://github.com/whatwg/html/pull/3163>

[12] [CITE@en[Ensure there is an active script while running JS jobs by domenic · Pull Request #3163 · whatwg/html]]
([TIME[2017-11-18 16:44:07 +09:00]])
<https://github.com/whatwg/html/pull/3163>