Skip to content

Commit

Permalink
(Re)disallow script defer/async attributes w/o src
Browse files Browse the repository at this point in the history
This change restores the following document-conformance requirement:

> The defer and async attributes must not be specified if the src
> attribute is not present.

That requirement was inadvertently dropped in cd1a9fb.
  • Loading branch information
sideshowbarker authored and domenic committed Apr 6, 2017
1 parent 9d0d388 commit 3c5180a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source
Expand Up @@ -57630,7 +57630,9 @@ interface <dfn>HTMLScriptElement</dfn> : <span>HTMLElement</span> {
data-x="classic script">Classic scripts</span> may specify <code
data-x="attr-script-defer">defer</code> or <code data-x="attr-script-async">async</code>; <span
data-x="module script">module scripts</span> may specify <code
data-x="attr-script-async">async</code>.</p>
data-x="attr-script-async">async</code>. The <code data-x="attr-script-defer">defer</code> and
<code data-x="attr-script-async">async</code> attributes must not be specified if the <code
data-x="attr-script-src">src</code> attribute is not present.</p>

<p>There are several possible modes that can be selected using these attributes, and depending on
the script's type.</p>
Expand Down

0 comments on commit 3c5180a

Please sign in to comment.