Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
199 changes: 45 additions & 154 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -4292,11 +4292,14 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
<p>The <dfn>lowercase ASCII letters</dfn> are the characters in the range U+0061 LATIN SMALL
LETTER A to U+007A LATIN SMALL LETTER Z.</p>

<p>The <dfn>ASCII letters</dfn> are the characters that are either <span>uppercase ASCII
letters</span> or <span>lowercase ASCII letters</span>.</p>

<p>The <dfn>ASCII digits</dfn> are the characters in the range U+0030 DIGIT ZERO (0) to U+0039
DIGIT NINE (9).</p>

<p>The <dfn>alphanumeric ASCII characters</dfn> are those that are either <span>uppercase ASCII
letters</span>, <span>lowercase ASCII letters</span>, or <span>ASCII digits</span>.</p>
<p>The <dfn>alphanumeric ASCII characters</dfn> are those that are either <span>ASCII
letters</span> or <span>ASCII digits</span>.</p>

<p>The <dfn>ASCII hex digits</dfn> are the characters in the ranges U+0030 DIGIT ZERO (0) to
U+0039 DIGIT NINE (9), U+0041 LATIN CAPITAL LETTER A to U+0046 LATIN CAPITAL LETTER F, and U+0061
Expand Down Expand Up @@ -99368,16 +99371,9 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {
<dt>U+002F SOLIDUS (/)</dt>
<dd>Switch to the <span>end tag open state</span>.</dd>

<dt><span data-x="uppercase ASCII letters">Uppercase ASCII letter</span></dt>
<dd>Create a new start tag token, set its tag name to the lowercase version of the <span>current
input character</span> (add 0x0020 to the character's code point), then switch to the <span>tag
name state</span>. (Don't emit the token yet; further details will be filled in before it is
emitted.)</dd>

<dt><span data-x="lowercase ASCII letters">Lowercase ASCII letter</span></dt>
<dd>Create a new start tag token, set its tag name to the <span>current input character</span>,
then switch to the <span>tag name state</span>. (Don't emit the token yet; further details will
be filled in before it is emitted.)</dd>
<dt><span data-x="ASCII letters">ASCII letter</span></dt>
<dd>Create a new start tag token, set its tag name to the empty string. Switch to the <span>tag
name state</span>. Reconsume the <span>current input character</span>.

<dt>U+003F QUESTION MARK (?)</dt>
<dd><span>Parse error</span>. Create a comment token whose data is the empty string. Switch to
Expand All @@ -99395,16 +99391,9 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {

<dl class="switch">

<dt><span data-x="uppercase ASCII letters">Uppercase ASCII letter</span></dt>
<dd>Create a new end tag token, set its tag name to the lowercase version of the <span>current
input character</span> (add 0x0020 to the character's code point), then switch to the <span>tag
name state</span>. (Don't emit the token yet; further details will be filled in before it is
emitted.)</dd>

<dt><span data-x="lowercase ASCII letters">Lowercase ASCII letter</span></dt>
<dd>Create a new end tag token, set its tag name to the <span>current input character</span>,
then switch to the <span>tag name state</span>. (Don't emit the token yet; further details will
be filled in before it is emitted.)</dd>
<dt><span data-x="ASCII letters">ASCII letter</span></dt>
<dd>Create a new end tag token, set its tag name to the empty string. Switch to the <span>tag
name state</span>. Reconsume the <span>current input character</span>.

<dt>U+003E GREATER-THAN SIGN (&gt;)</dt>
<dd><span>Parse error</span>. Switch to the <span>data state</span>.</dd>
Expand Down Expand Up @@ -99482,18 +99471,9 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {

<dl class="switch">

<dt><span data-x="uppercase ASCII letters">Uppercase ASCII letter</span></dt>
<dd>Create a new end tag token, and set its tag name to the lowercase version of the
<span>current input character</span> (add 0x0020 to the character's code point). Append the
<span>current input character</span> to the <var data-x="temporary buffer">temporary
buffer</var>. Finally, switch to the <span>RCDATA end tag name state</span>. (Don't emit the
token yet; further details will be filled in before it is emitted.)</dd>

<dt><span data-x="lowercase ASCII letters">Lowercase ASCII letter</span></dt>
<dd>Create a new end tag token, and set its tag name to the <span>current input character</span>.
Append the <span>current input character</span> to the <var data-x="temporary buffer">temporary
buffer</var>. Finally, switch to the <span>RCDATA end tag name state</span>. (Don't emit the
token yet; further details will be filled in before it is emitted.)</dd>
<dt><span data-x="ASCII letters">ASCII letter</span></dt>
<dd>Create a new end tag token, set its tag name to the empty string. Switch to the <span>RCDATA
end tag name state</span>. Reconsume the <span>current input character</span>.

<dt>Anything else</dt>
<dd>Switch to the <span>RCDATA state</span>. Emit a U+003C LESS-THAN SIGN character token and a
Expand Down Expand Up @@ -99572,18 +99552,9 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {

<dl class="switch">

<dt><span data-x="uppercase ASCII letters">Uppercase ASCII letter</span></dt>
<dd>Create a new end tag token, and set its tag name to the lowercase version of the
<span>current input character</span> (add 0x0020 to the character's code point). Append the
<span>current input character</span> to the <var data-x="temporary buffer">temporary
buffer</var>. Finally, switch to the <span>RAWTEXT end tag name state</span>. (Don't emit the
token yet; further details will be filled in before it is emitted.)</dd>

<dt><span data-x="lowercase ASCII letters">Lowercase ASCII letter</span></dt>
<dd>Create a new end tag token, and set its tag name to the <span>current input character</span>.
Append the <span>current input character</span> to the <var data-x="temporary buffer">temporary
buffer</var>. Finally, switch to the <span>RAWTEXT end tag name state</span>. (Don't emit the
token yet; further details will be filled in before it is emitted.)</dd>
<dt><span data-x="ASCII letters">ASCII letter</span></dt>
<dd>Create a new end tag token, set its tag name to the empty string. Switch to the
<span>RAWTEXT end tag name state</span>. Reconsume the <span>current input character</span>.

<dt>Anything else</dt>
<dd>Switch to the <span>RAWTEXT state</span>. Emit a U+003C LESS-THAN SIGN character token and a
Expand Down Expand Up @@ -99665,18 +99636,9 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {

<dl class="switch">

<dt><span data-x="uppercase ASCII letters">Uppercase ASCII letter</span></dt>
<dd>Create a new end tag token, and set its tag name to the lowercase version of the
<span>current input character</span> (add 0x0020 to the character's code point). Append the
<span>current input character</span> to the <var data-x="temporary buffer">temporary
buffer</var>. Finally, switch to the <span>script data end tag name state</span>. (Don't emit the
token yet; further details will be filled in before it is emitted.)</dd>

<dt><span data-x="lowercase ASCII letters">Lowercase ASCII letter</span></dt>
<dd>Create a new end tag token, and set its tag name to the <span>current input character</span>.
Append the <span>current input character</span> to the <var data-x="temporary buffer">temporary
buffer</var>. Finally, switch to the <span>script data end tag name state</span>. (Don't emit the
token yet; further details will be filled in before it is emitted.)</dd>
<dt><span data-x="ASCII letters">ASCII letter</span></dt>
<dd>Create a new end tag token, set its tag name to the empty string. Switch to the <span>script
data end tag name state</span>. Reconsume the <span>current input character</span>.

<dt>Anything else</dt>
<dd>Switch to the <span>script data state</span>. Emit a U+003C LESS-THAN SIGN character token
Expand Down Expand Up @@ -99859,19 +99821,10 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {
<dd>Set the <var data-x="temporary buffer">temporary buffer</var> to the empty string. Switch to
the <span>script data escaped end tag open state</span>.</dd>

<dt><span data-x="uppercase ASCII letters">Uppercase ASCII letter</span></dt>
<dd>Set the <var data-x="temporary buffer">temporary buffer</var> to the empty string. Append the
lowercase version of the <span>current input character</span> (add 0x0020 to the character's code
point) to the <var data-x="temporary buffer">temporary buffer</var>. Switch to the <span>script
data double escape start state</span>. Emit a U+003C LESS-THAN SIGN character token and the
<span>current input character</span> as a character token.</dd>

<dt><span data-x="lowercase ASCII letters">Lowercase ASCII letter</span></dt>
<dd>Set the <var data-x="temporary buffer">temporary buffer</var> to the empty string. Append the
<span>current input character</span> to the <var data-x="temporary buffer">temporary
buffer</var>. Switch to the <span>script data double escape start state</span>. Emit a U+003C
LESS-THAN SIGN character token and the <span>current input character</span> as a character
token.</dd>
<dt><span data-x="ASCII letters">ASCII letter</span></dt>
<dd>Set the <var data-x="temporary buffer">temporary buffer</var> to the empty string. Switch to
the <span>script data double escape start state</span>. Reconsume the <span>current input
character</span>. Emit a U+003C LESS-THAN SIGN character token.</dd>

<dt>Anything else</dt>
<dd>Switch to the <span>script data escaped state</span>. Emit a U+003C LESS-THAN SIGN character
Expand All @@ -99886,18 +99839,10 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {

<dl class="switch">

<dt><span data-x="uppercase ASCII letters">Uppercase ASCII letter</span></dt>
<dd>Create a new end tag token, and set its tag name to the lowercase version of the
<span>current input character</span> (add 0x0020 to the character's code point). Append the
<span>current input character</span> to the <var data-x="temporary buffer">temporary
buffer</var>. Finally, switch to the <span>script data escaped end tag name state</span>. (Don't
emit the token yet; further details will be filled in before it is emitted.)</dd>

<dt><span data-x="lowercase ASCII letters">Lowercase ASCII letter</span></dt>
<dd>Create a new end tag token, and set its tag name to the <span>current input character</span>.
Append the <span>current input character</span> to the <var data-x="temporary buffer">temporary
buffer</var>. Finally, switch to the <span>script data escaped end tag name state</span>. (Don't
emit the token yet; further details will be filled in before it is emitted.)</dd>
<dt><span data-x="ASCII letters">ASCII letter</span></dt>
<dd>Create a new end tag token. Switch to the <span>script data escaped end tag name
state</span>. Reconsume the <span>current input character</span>. (Don't emit the token yet;
further details will be filled in before it is emitted.)</dd>

<dt>Anything else</dt>
<dd>Switch to the <span>script data escaped state</span>. Emit a U+003C LESS-THAN SIGN character
Expand Down Expand Up @@ -100140,35 +100085,20 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {
<dd>Ignore the character.</dd>

<dt>U+002F SOLIDUS (/)</dt>
<dd>Switch to the <span>self-closing start tag state</span>.</dd>

<dt>U+003E GREATER-THAN SIGN (&gt;)</dt>
<dd>Switch to the <span>data state</span>. Emit the current tag token.</dd>

<dt><span data-x="uppercase ASCII letters">Uppercase ASCII letter</span></dt>
<dd>Start a new attribute in the current tag token. Set that attribute's name to the lowercase
version of the <span>current input character</span> (add 0x0020 to the character's code point),
and its value to the empty string. Switch to the <span>attribute name state</span>.</dd>
<dt>EOF</dt>
<dd>Switch to the <span>after attribute name state</span>. Reconsume the <span>current input
character</span>.</dd>

<dt>U+0000 NULL</dt>
<dt>U+003D EQUALS SIGN (=)</dt>
<dd><span>Parse error</span>. Start a new attribute in the current tag token. Set that
attribute's name to a U+FFFD REPLACEMENT CHARACTER character, and its value to the empty string.
attribute's name to the <span>current input character</span>, and its value to the empty string.
Switch to the <span>attribute name state</span>.</dd>

<dt>U+0022 QUOTATION MARK (&quot;)</dt>
<dt>U+0027 APOSTROPHE (')</dt>
<dt>U+003C LESS-THAN SIGN (&lt;)</dt>
<dt>U+003D EQUALS SIGN (=)</dt>
<dd><span>Parse error</span>. Treat it as per the "anything else" entry below.</dd>

<dt>EOF</dt>
<dd><span>Parse error</span>. Switch to the <span>data state</span>. Reconsume the EOF
character.</dd>

<dt>Anything else</dt>
<dd>Start a new attribute in the current tag token. Set that attribute's name to the
<span>current input character</span>, and its value to the empty string. Switch to the
<span>attribute name state</span>.</dd>
<dd>Start a new attribute in the current tag token. Set that attribute name and value to the
empty string. Switch to the <span>attribute name state</span>. Reconsume the <span>current input
character</span>.</dd>

</dl>

Expand All @@ -100184,17 +100114,15 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {
<dt>U+000C FORM FEED (FF)</dt>
<!--<dt>U+000D CARRIAGE RETURN (CR)</dt>-->
<dt>U+0020 SPACE</dt>
<dd>Switch to the <span>after attribute name state</span>.</dd>

<dt>U+002F SOLIDUS (/)</dt>
<dd>Switch to the <span>self-closing start tag state</span>.</dd>
<dt>U+003E GREATER-THAN SIGN (&gt;)</dt>
<dt>EOF</dt>
<dd>Switch to the <span>after attribute name state</span>. Reconsume the <span>current input
character</span>.</dd>

<dt>U+003D EQUALS SIGN (=)</dt>
<dd>Switch to the <span>before attribute value state</span>.</dd>

<dt>U+003E GREATER-THAN SIGN (&gt;)</dt>
<dd>Switch to the <span>data state</span>. Emit the current tag token.</dd>

<dt><span data-x="uppercase ASCII letters">Uppercase ASCII letter</span></dt>
<dd>Append the lowercase version of the <span>current input character</span> (add 0x0020 to the
character's code point) to the current attribute's name.</dd>
Expand All @@ -100208,10 +100136,6 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {
<dt>U+003C LESS-THAN SIGN (&lt;)</dt>
<dd><span>Parse error</span>. Treat it as per the "anything else" entry below.</dd>

<dt>EOF</dt>
<dd><span>Parse error</span>. Switch to the <span>data state</span>. Reconsume the EOF
character.</dd>

<dt>Anything else</dt>
<dd>Append the <span>current input character</span> to the current attribute's name.</dd>

Expand Down Expand Up @@ -100250,29 +100174,14 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {
<dt>U+003E GREATER-THAN SIGN (&gt;)</dt>
<dd>Switch to the <span>data state</span>. Emit the current tag token.</dd>

<dt><span data-x="uppercase ASCII letters">Uppercase ASCII letter</span></dt>
<dd>Start a new attribute in the current tag token. Set that attribute's name to the lowercase
version of the <span>current input character</span> (add 0x0020 to the character's code point),
and its value to the empty string. Switch to the <span>attribute name state</span>.</dd>

<dt>U+0000 NULL</dt>
<dd><span>Parse error</span>. Start a new attribute in the current tag token. Set that
attribute's name to a U+FFFD REPLACEMENT CHARACTER character, and its value to the empty string.
Switch to the <span>attribute name state</span>.</dd>

<dt>U+0022 QUOTATION MARK (&quot;)</dt>
<dt>U+0027 APOSTROPHE (')</dt>
<dt>U+003C LESS-THAN SIGN (&lt;)</dt>
<dd><span>Parse error</span>. Treat it as per the "anything else" entry below.</dd>

<dt>EOF</dt>
<dd><span>Parse error</span>. Switch to the <span>data state</span>. Reconsume the EOF
character.</dd>

<dt>Anything else</dt>
<dd>Start a new attribute in the current tag token. Set that attribute's name to the
<span>current input character</span>, and its value to the empty string. Switch to the
<span>attribute name state</span>.</dd>
<dd>Start a new attribute in the current tag token. Set that attribute name and value to the
empty string. Switch to the <span>attribute name state</span>. Reconsume the <span>current input
character</span>.</dd>

</dl>

Expand All @@ -100293,33 +100202,15 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {
<dt>U+0022 QUOTATION MARK (&quot;)</dt>
<dd>Switch to the <span>attribute value (double-quoted) state</span>.</dd>

<dt>U+0026 AMPERSAND (&amp;)</dt>
<dd>Switch to the <span>attribute value (unquoted) state</span>. Reconsume the <span>current
input character</span>.</dd>

<dt>U+0027 APOSTROPHE (')</dt>
<dd>Switch to the <span>attribute value (single-quoted) state</span>.</dd>

<dt>U+0000 NULL</dt>
<dd><span>Parse error</span>. Append a U+FFFD REPLACEMENT CHARACTER character to the current
attribute's value. Switch to the <span>attribute value (unquoted) state</span>.</dd>

<dt>U+003E GREATER-THAN SIGN (&gt;)</dt>
<dd><span>Parse error</span>. Switch to the <span>data state</span>. Emit the current tag
token.</dd>

<dt>U+003C LESS-THAN SIGN (&lt;)</dt>
<dt>U+003D EQUALS SIGN (=)</dt>
<dt>U+0060 GRAVE ACCENT (`)</dt>
<dd><span>Parse error</span>. Treat it as per the "anything else" entry below.</dd>

<dt>EOF</dt>
<dd><span>Parse error</span>. Switch to the <span>data state</span>. Reconsume the EOF
character.</dd>

<dt>Anything else</dt>
<dd>Append the <span>current input character</span> to the current attribute's value. Switch to
the <span>attribute value (unquoted) state</span>.</dd>
<dd>Switch to the <span>attribute value (unquoted) state</span>. Reconsume the <span>current
input character</span>.</dd>

</dl>

Expand Down