Skip to content

Commit

Permalink
address various nits and some grammar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Oct 6, 2017
1 parent 7950855 commit 716ab5f
Showing 1 changed file with 15 additions and 19 deletions.
34 changes: 15 additions & 19 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -14731,11 +14731,11 @@ people expect to have work and what is necessary.
<p>The Encoding standard requires use of the <span>UTF-8</span> <span data-x="encoding">character
encoding</span> and requires use of the "<code data-x="">utf-8</code>" <span>encoding label</span>
to identify it. Those requirements necessitate that the document's <span>character encoding
declaration</span>, if it exists, specify an <span>encoding label</span> using an <span>ASCII
case-insensitive</span> match for the string "<code data-x="">utf-8</code>". Regardless of whether
a <span>character encoding declaration</span> is present or not, the actual <span
data-x="document's character encoding">character encoding</span> used to store or transmit the
document must be <span>UTF-8</span>. <ref spec=ENCODING></p>
declaration</span>, if it exists, specifies an <span>encoding label</span> using an <span>ASCII
case-insensitive</span> match for "<code data-x="">utf-8</code>". Regardless of whether a
<span>character encoding declaration</span> is present or not, the actual <span data-x="document's
character encoding">character encoding</span> used to encode the 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.</p>
Expand Down Expand Up @@ -57254,15 +57254,13 @@ interface <dfn>HTMLScriptElement</dfn> : <span>HTMLElement</span> {
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-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>
attributes. 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-defer">defer</code>
attribute (or by the legacy <code data-x="attr-script-charset">charset</code>
attribute).</p></li>
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 @@ -57385,15 +57383,13 @@ interface <dfn>HTMLScriptElement</dfn> : <span>HTMLElement</span> {
<span>module script</span> or when the <code data-x="attr-script-src">src</code> attribute is not
specified. <ref spec="SRI"></p>


<p>Changing the <code data-x="attr-script-src">src</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>
<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 -->
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 -->

<div w-nodev>

Expand Down Expand Up @@ -112962,8 +112958,8 @@ if (s = prompt('What is your name?')) {

<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
<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>
Expand Down Expand Up @@ -114071,8 +114067,8 @@ interface <dfn>HTMLFontElement</dfn> : <span>HTMLElement</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> and <dfn><code
data-x="dom-script-charset">charset</code></dfn> IDL attributes of the <code>script</code> element
<p>The <dfn><code data-x="dom-script-charset">charset</code></dfn> and <dfn><code
data-x="dom-script-event">event</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
Expand Down

1 comment on commit 716ab5f

@sideshowbarker
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

716ab5f changes LGTM

Please sign in to comment.