Skip to content

Commit

Permalink
Obsolete but conforming
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Oct 5, 2017
1 parent c28ea1e commit d891e56
Showing 1 changed file with 35 additions and 33 deletions.
68 changes: 35 additions & 33 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -14738,7 +14738,7 @@ people expect to have work and what is necessary.
document must be <span>UTF-8</span>. <ref spec=ENCODING></p>

<p w-nodev>To enforce the above rules, authoring tools must default to using <span>UTF-8</span>
for newly-created documents. <ref spec=ENCODING></p>
for newly-created documents.</p>

<p>The following restrictions also apply:</p>

Expand Down Expand Up @@ -57230,7 +57230,6 @@ interface <dfn>HTMLScriptElement</dfn> : <span>HTMLElement</span> {
[<span>CEReactions</span>] attribute USVString <span data-x="dom-script-src">src</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-script-type">type</span>;
[<span>CEReactions</span>] attribute boolean <span data-x="dom-script-noModule">noModule</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-script-charset">charset</span>;
[<span>CEReactions</span>] attribute boolean <span data-x="dom-script-async">async</span>;
[<span>CEReactions</span>] attribute boolean <span data-x="dom-script-defer">defer</span>;
[<span>CEReactions</span>] attribute DOMString? <span data-x="dom-script-crossOrigin">crossOrigin</span>;
Expand All @@ -57255,16 +57254,16 @@ interface <dfn>HTMLScriptElement</dfn> : <span>HTMLElement</span> {
case-insensitive</span> match for a <span>JavaScript MIME type</span>, means that the script is
a <span>classic script</span>, to be interpreted according to the JavaScript <i
data-x="js-prod-Script">Script</i> top-level production. Classic scripts are affected by the
<code data-x="attr-script-charset">charset</code>, <code
data-x="attr-script-async">async</code>, and <code data-x="attr-script-defer">defer</code>
attributes. Authors should omit the attribute instead of redundantly setting it.</p></li>
<code data-x="attr-script-async">async</code> and <code data-x="attr-script-defer">defer</code>
attributes (as well as the legacy <code data-x="attr-script-charset">charset</code> attribute).
Authors should omit the attribute instead of redundantly setting it.</p></li>

<li><p>Setting the attribute to an <span>ASCII case-insensitive</span> match for the string
"<code data-x="">module</code>" means that the script is a <span>module script</span>, to be
interpreted according to the JavaScript <i data-x="js-prod-Module">Module</i> top-level
production. Module scripts are not affected by the <code
data-x="attr-script-charset">charset</code> and <code data-x="attr-script-defer">defer</code>
attributes.</p></li>
production. Module scripts are not affected by the <code data-x="attr-script-defer">defer</code>
attribute (or by the legacy <code data-x="attr-script-charset">charset</code>
attribute).</p></li>

<li><p>Setting the attribute to any other value means that the script is a <dfn>data
block</dfn>, which is not processed. None of the <code>script</code> attributes (except <code
Expand Down Expand Up @@ -57295,10 +57294,9 @@ interface <dfn>HTMLScriptElement</dfn> : <span>HTMLElement</span> {
spec="JAVASCRIPT"></p>

<p>When used to include <span data-x="data block">data blocks</span>, the data must be embedded
inline, the format of the data must be given using the <code
data-x="attr-script-type">type</code> attribute, and the contents of the <code>script</code>
element must conform to the requirements defined for the format used. The <code
data-x="attr-script-src">src</code>, <code data-x="attr-script-charset">charset</code>, <code
inline, the format of the data must be given using the <code data-x="attr-script-type">type</code>
attribute, and the contents of the <code>script</code> element must conform to the requirements
defined for the format used. The <code data-x="attr-script-src">src</code>, <code
data-x="attr-script-async">async</code>, <code data-x="attr-script-nomodule">nomodule</code>,
<code data-x="attr-script-defer">defer</code>, <code
data-x="attr-script-crossorigin">crossorigin</code>, <code data-x="attr-script-nonce">nonce</code>
Expand All @@ -57313,13 +57311,6 @@ interface <dfn>HTMLScriptElement</dfn> : <span>HTMLElement</span> {
specified on <span data-x="module script">module scripts</span> (and will be ignored if it
is).</p>

<p>The <dfn><code data-x="attr-script-charset">charset</code></dfn> attribute gives the character
encoding of the external script resource. The attribute must not be specified if the <code
data-x="attr-script-src">src</code> attribute is not present, or if the script is not a
<span>classic script</span>. (<span data-x="module script">Module scripts</span> are always
interpreted as UTF-8.) If the attribute is set, its value must be an <span>ASCII
case-insensitive</span> match for the string "<code data-x="">utf-8</code>".</p>

<p>The <dfn><code data-x="attr-script-async">async</code></dfn> and <dfn><code
data-x="attr-script-defer">defer</code></dfn> attributes are <span data-x="boolean
attribute">boolean attributes</span> that indicate how the script should be evaluated. <span
Expand Down Expand Up @@ -57397,19 +57388,18 @@ interface <dfn>HTMLScriptElement</dfn> : <span>HTMLElement</span> {


<p>Changing the <code data-x="attr-script-src">src</code>, <code
data-x="attr-script-type">type</code>, <code data-x="attr-script-charset">charset</code>, <code
data-x="attr-script-nomodule">nomodule</code>, <code
data-x="attr-script-type">type</code>, <code data-x="attr-script-nomodule">nomodule</code>, <code
data-x="attr-script-async">async</code>, <code data-x="attr-script-defer">defer</code>, <code
data-x="attr-script-crossorigin">crossorigin</code>, <code data-x="attr-script-nonce">nonce</code>
and <code data-x="attr-script-integrity">integrity</code> attributes dynamically has no direct
effect; these attributes are only used at specific times described below.</p> <!-- by implication,
changes to the base URL also have no effect -->
<code data-x="attr-script-integrity">integrity</code> attributes dynamically has no direct effect;
these attributes are only used at specific times described below. (The same is true for the legacy
<code data-x="attr-script-charset">charset</code> attribute.</p> <!-- by implication, changes to
the base URL also have no effect -->

<div w-nodev>

<p>The IDL attributes <dfn><code data-x="dom-script-src">src</code></dfn>, <dfn><code
data-x="dom-script-type">type</code></dfn>, <dfn><code
data-x="dom-script-charset">charset</code></dfn>, <dfn><code
data-x="dom-script-defer">defer</code></dfn>, <dfn><code
data-x="dom-script-integrity">integrity</code></dfn>, and <dfn><code
data-x="dom-script-nonce">nonce</code></dfn>, must each <span>reflect</span> the respective
Expand Down Expand Up @@ -112760,6 +112750,12 @@ if (s = prompt('What is your name?')) {
<code>img</code> element. If the attribute is present, its value must be the string "<code
data-x="">0</code>". CSS should be used instead.</p>

<p>Authors should not specify a <code data-x="attr-script-charset">charset</code> attribute on a
<code>script</code> element. If the attribute is present, its value must be an <span>ASCII
case-insensitive</span> match for "<code data-x="">utf-8</code>". (This has no effect in a
document that conforms to the requirements elsewhere in this standard of being encoded as
<span>UTF-8</span>.)</p>

<p>Authors should not specify a <code data-x="attr-script-language">language</code> attribute on a
<code>script</code> element. If the attribute is present, its value must be an <span>ASCII
case-insensitive</span> match for the string "<code data-x="">JavaScript</code>" and either the
Expand Down Expand Up @@ -112819,6 +112815,10 @@ if (s = prompt('What is your name?')) {
<li><p>The presence of a <code data-x="attr-img-border">border</code> attribute on an
<code>img</code> element if its value is the string "<code data-x="">0</code>".</p></li>

<li><p>The presence of a <code data-x="attr-script-charset">charset</code> attribute on a
<code>script</code> element if its value is an <span>ASCII case-insensitive</span> match for
"<code data-x="">utf-8</code>".</p></li>

<li><p>The presence of a <code data-x="attr-script-language">language</code> attribute on a
<code>script</code> element if its value is an <span>ASCII case-insensitive</span> match for the
string "<code data-x="">JavaScript</code>" and if there is no <code
Expand Down Expand Up @@ -112961,6 +112961,12 @@ if (s = prompt('What is your name?')) {
<dt><dfn><code data-x="attr-link-charset">charset</code></dfn> on <code>link</code> elements</dt>
<dd><p>Use an HTTP `<code>Content-Type</code>` header on the linked resource instead.</p></dd>

<dt><dfn><code data-x="attr-script-charset">charset</code></dfn> on <code>script</code>
elements (except as noted in the previous section)</dt>
<dd><p>Omit the attribute. Both documents and scripts are required to use <span>UTF-8</span>,
so it is redundant to specify it on the <code>script</code> element since it inherits from the
document.</p></dd>

<dt><dfn><code data-x="attr-a-coords">coords</code></dfn> on <code>a</code> elements</dt>
<dt><dfn><code data-x="attr-a-shape">shape</code></dfn> on <code>a</code> elements</dt>
<dd><p>Use <code>area</code> instead of <code>a</code> for image maps.</p></dd>
Expand Down Expand Up @@ -114061,13 +114067,14 @@ interface <dfn>HTMLFontElement</dfn> : <span>HTMLElement</span> {
<hr>

<pre class="idl">partial interface <span id="HTMLScriptElement-partial">HTMLScriptElement</span> {
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-script-charset">charset</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-script-event">event</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-script-htmlFor">htmlFor</span>;
};</pre>

<p>The <dfn><code data-x="dom-script-event">event</code></dfn> IDL attribute of the
<code>script</code> element must <span>reflect</span> the element's
<code data-x="attr-script-event">event</code> content attribute.</p>
<p>The <dfn><code data-x="dom-script-event">event</code></dfn> and <dfn><code
data-x="dom-script-charset">charset</code></dfn> IDL attributes of the <code>script</code> element
must <span>reflect</span> the respective content attributes of the same name.</p>

<p>The <dfn><code data-x="dom-script-htmlFor">htmlFor</code></dfn> IDL attribute of the
<code>script</code> element must <span>reflect</span> the element's
Expand Down Expand Up @@ -117226,11 +117233,6 @@ interface <dfn>External</dfn> {
<td> <code data-x="attr-meta-charset">meta</code>
<td> <span>Character encoding declaration</span>
<td> "<code data-x="">utf-8</code>"
<tr>
<th> <code data-x="">charset</code>
<td> <code data-x="attr-script-charset">script</code>
<td> Character encoding of the external script resource
<td> "<code data-x="">utf-8</code>"
<tr>
<th> <code data-x="">checked</code>
<td> <code data-x="attr-input-checked">input</code>
Expand Down

0 comments on commit d891e56

Please sign in to comment.