@@ -57224,13 +57224,16 @@ interface <dfn>HTMLScriptElement</dfn> : <span>HTMLElement</span> {
57224
57224
a <span>classic script</span>, to be interpreted according to the JavaScript <i
57225
57225
data-x="js-prod-Script">Script</i> top-level production. Classic scripts are affected by the
57226
57226
<code data-x="attr-script-async">async</code> and <code data-x="attr-script-defer">defer</code>
57227
- attributes. Authors should omit the attribute instead of redundantly setting it.</p></li>
57227
+ attributes, but only when the <code data-x="attr-script-src">src</code> attribute is set.
57228
+ Authors should omit the <code data-x="attr-script-type">type</code> attribute instead of
57229
+ redundantly setting it.</p></li>
57228
57230
57229
57231
<li><p>Setting the attribute to an <span>ASCII case-insensitive</span> match for the string
57230
57232
"<code data-x="">module</code>" means that the script is a <span>module script</span>, to be
57231
57233
interpreted according to the JavaScript <i data-x="js-prod-Module">Module</i> top-level
57232
57234
production. Module scripts are not affected by the <code data-x="attr-script-defer">defer</code>
57233
- attribute.</p></li>
57235
+ attribute, but are affected by the <code data-x="attr-script-async">async</code> attribute
57236
+ (regardless of the state of the <code data-x="attr-script-src">src</code> attribute).</p></li>
57234
57237
57235
57238
<li><p>Setting the attribute to any other value means that the script is a <dfn>data
57236
57239
block</dfn>, which is not processed. None of the <code>script</code> attributes (except <code
@@ -57282,11 +57285,11 @@ interface <dfn>HTMLScriptElement</dfn> : <span>HTMLElement</span> {
57282
57285
data-x="attr-script-defer">defer</code></dfn> attributes are <span data-x="boolean
57283
57286
attribute">boolean attributes</span> that indicate how the script should be evaluated. <span
57284
57287
data-x="classic script">Classic scripts</span> may specify <code
57285
- data-x="attr-script-defer">defer</code> or <code data-x="attr-script-async">async</code>; <span
57286
- data-x="module script">module scripts</span> may specify <code
57287
- data-x="attr- script-async">async</code>. The <code data-x="attr-script-defer">defer</ code> and
57288
- <code data-x="attr-script-async">async</code> attributes must not be specified if the <code
57289
- data-x="attr-script-src">src </code> attribute is not present .</p>
57288
+ data-x="attr-script-defer">defer</code> or <code data-x="attr-script-async">async</code>, but must
57289
+ not specify either unless the <code data-x="attr- script-src">src</code> attribute is present.
57290
+ <span data-x="module script">Module scripts</span> may specify the < code
57291
+ data-x="attr-script-async">async</code> attribute, but must not specify the <code
57292
+ data-x="attr-script-defer">defer </code> attribute.</p>
57290
57293
57291
57294
<p>There are several possible modes that can be selected using these attributes, and depending on
57292
57295
the script's type.</p>
0 commit comments