[html5] r4261 - [e] (0) A general editorial cleanup, primarily around how Unicode characters are [...]
whatwg at whatwg.org
whatwg at whatwg.org
Wed Oct 21 05:12:18 PDT 2009
Author: ianh
Date: 2009-10-21 05:12:14 -0700 (Wed, 21 Oct 2009)
New Revision: 4261
Modified:
complete.html
index
source
Log:
[e] (0) A general editorial cleanup, primarily around how Unicode characters are presented.
Modified: complete.html
===================================================================
--- complete.html 2009-10-21 11:58:58 UTC (rev 4260)
+++ complete.html 2009-10-21 12:12:14 UTC (rev 4261)
@@ -4878,9 +4878,9 @@
<!-- http://www.hixie.ch/tests/adhoc/html/navigation/javascript-url/ -->
- <!-- XXX this should be tested in the case of a browsing context
- that was navigated to about:blank after having been elsewhere,
- as opposed to the about:blank used at the time of the browsing
+ <!-- this should be tested in the case of a browsing context that
+ was navigated to about:blank after having been elsewhere, as
+ opposed to the about:blank used at the time of the browsing
context's creation. -->
<p>If <var title="">fallback base url</var> is
@@ -53470,9 +53470,9 @@
"NETWORK" followed by a U+003A COLON character (:)), then set <var title="">mode</var> to "online whitelist" and jump back to the step
labeled "start of line".</li>
- <li><p>If <var title="">line</var> ends with a U+003A COLON (:)
- character, then set <var title="">mode</var> to "unknown" and jump
- back to the step labeled "start of line".</li>
+ <li><p>If <var title="">line</var> ends with a U+003A COLON
+ character (:), then set <var title="">mode</var> to "unknown" and
+ jump back to the step labeled "start of line".</li>
<li><p>This is either a data line or it is syntactically
incorrect.</li>
@@ -58521,7 +58521,7 @@
statement">preprocess a SQL statement</dfn> <var title="">sqlStatement</var> with an array of arguments <var title="">arguments</var>, it must run the following steps:</p>
<ol><li><p>Parse <var title="">sqlStatement</var> as a SQL statement,
- with the exception that U+003F QUESTION MARK (?) characters can be
+ with the exception that U+003F QUESTION MARK characters (?) can be
used in place of SQL literals in the statement. <a href=#refsSQL>[SQL]</a></li>
<li>
@@ -68612,14 +68612,14 @@
<p>A DOCTYPE must consist of the following characters, in this
order:</p>
- <ol class=brief><li>A U+003C LESS-THAN SIGN (<code><</code>) character.</li>
- <li>A U+0021 EXCLAMATION MARK (<code>!</code>) character.</li>
+ <ol class=brief><li>A U+003C LESS-THAN SIGN character (<).</li>
+ <li>A U+0021 EXCLAMATION MARK character (!).</li>
<li>A string that is an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the string "<code title="">DOCTYPE</code>".</li>
<li>One or more <a href=#space-character title="space character">space characters</a>.</li>
<li>A string that is an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the string "<code title="">HTML</code>".</li>
<li>Optionally, a <a href=#doctype-legacy-string>DOCTYPE legacy string</a> (defined below).</li>
<li>Zero or more <a href=#space-character title="space character">space characters</a>.</li>
- <li>A U+003E GREATER-THAN SIGN (<code>></code>) character.</li>
+ <li>A U+003E GREATER-THAN SIGN character (>).</li>
</ol><p class=note>In other words, <code><!DOCTYPE HTML></code>,
case-insensitively.</p>
@@ -68722,9 +68722,7 @@
end tag, no content can be put between the start tag and the end
tag). <a href=#foreign-elements>Foreign elements</a> whose start tag is <em>not</em>
marked as self-closing can have <a href=#syntax-text title=syntax-text>text</a>, <a href=#syntax-charref title=syntax-charref>character references</a>, <a href=#syntax-cdata title=syntax-cdata>CDATA sections</a>, other <a href=#syntax-elements title=syntax-elements>elements</a>, and <a href=#syntax-comments title=syntax-comments>comments</a>, but the text must not
- contain the character U+003C LESS-THAN SIGN (<code><</code>) or
- an <a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous
- ampersand</a>.</p>
+ contain the character U+003C LESS-THAN SIGN (<) or an <a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous ampersand</a>.</p>
<div class=note>
@@ -68751,9 +68749,8 @@
</div>
<p><a href=#normal-elements>Normal elements</a> can have <a href=#syntax-text title=syntax-text>text</a>, <a href=#syntax-charref title=syntax-charref>character references</a>, other <a href=#syntax-elements title=syntax-elements>elements</a>, and <a href=#syntax-comments title=syntax-comments>comments</a>, but the text must not
- contain the character U+003C LESS-THAN SIGN (<code><</code>) or
- an <a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous
- ampersand</a>. Some <a href=#normal-elements>normal elements</a> also have <a href=#element-restrictions>yet more restrictions</a> on what
+ contain the character U+003C LESS-THAN SIGN (<) or an <a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous ampersand</a>. Some
+ <a href=#normal-elements>normal elements</a> also have <a href=#element-restrictions>yet more restrictions</a> on what
content they are allowed to hold, beyond the restrictions imposed by
the content model and those described in this paragraph. Those
restrictions are described below.</p>
@@ -68775,7 +68772,7 @@
following format:</p>
<ol><li>The first character of a start tag must be a U+003C LESS-THAN
- SIGN (<code><</code>).</li>
+ SIGN character (<).</li>
<li>The next few characters of a start tag must be the element's
<a href=#syntax-tag-name title=syntax-tag-name>tag name</a>.</li>
@@ -68793,13 +68790,13 @@
<li>Then, if the element is one of the <a href=#void-elements>void elements</a>,
or if the element is a <a href=#foreign-elements title="foreign elements">foreign
- element</a>, then there may be a single U+002F SOLIDUS
- (<code>/</code>) character. This character has no effect on
- <a href=#void-elements>void elements</a>, but on <a href=#foreign-elements>foreign elements</a> it
- marks the start tag as self-closing.</li>
+ element</a>, then there may be a single U+002F SOLIDUS character
+ (/). This character has no effect on <a href=#void-elements>void elements</a>,
+ but on <a href=#foreign-elements>foreign elements</a> it marks the start tag as
+ self-closing.</li>
<li>Finally, start tags must be closed by a U+003E GREATER-THAN
- SIGN (<code>></code>) character.</li>
+ SIGN character (>).</li>
</ol><h5 id=end-tags><span class=secno>11.1.2.2 </span>End tags</h5>
@@ -68807,10 +68804,10 @@
following format:</p>
<ol><li>The first character of an end tag must be a U+003C LESS-THAN
- SIGN (<code><</code>).</li>
+ SIGN character (<).</li>
<li>The second character of an end tag must be a U+002F SOLIDUS
- (<code>/</code>).</li>
+ character (/).</li>
<li>The next few characters of an end tag must be the element's
<a href=#syntax-tag-name title=syntax-tag-name>tag name</a>.</li>
@@ -68818,8 +68815,8 @@
<li>After the tag name, there may be one or more <a href=#space-character title="space
character">space characters</a>.</li>
- <li>Finally, end tags must be closed by a U+003E GREATER-THAN
- SIGN (<code>></code>) character.</li>
+ <li>Finally, end tags must be closed by a U+003E GREATER-THAN SIGN
+ character (>).</li>
</ol><h5 id=attributes><span class=secno>11.1.2.3 </span>Attributes</h5>
@@ -68876,12 +68873,11 @@
character">space characters</a>, followed by the <a href=#syntax-attribute-value title=syntax-attribute-value>attribute value</a>, which, in
addition to the requirements given above for attribute values,
must not contain any literal <a href=#space-character title="space character">space
- characters</a>, any U+0022 QUOTATION MARK (<code>"</code>)
- characters, U+0027 APOSTROPHE (<code>'</code>) characters,
- U+003D EQUALS SIGN (<code>=</code>) characters, U+003C LESS-THAN
- SIGN (<code><</code>) characters, U+003E GREATER-THAN SIGN
- (<code>></code>) characters, or U+0060 GRAVE ACCENT (`)
- characters, and must not be the empty string.</p>
+ characters</a>, any U+0022 QUOTATION MARK characters ("),
+ U+0027 APOSTROPHE characters ('), U+003D EQUALS SIGN
+ characters (=), U+003C LESS-THAN SIGN characters (<), U+003E
+ GREATER-THAN SIGN characters (>), or U+0060 GRAVE ACCENT
+ characters (`), and must not be the empty string.</p>
<!-- The ` character is in this list on a temporary basis, waiting
for IE to fix it's parsing bug whereby it treats ` as an
@@ -68938,11 +68934,11 @@
characters</a>, followed by a single U+003D EQUALS SIGN
character, followed by zero or more <a href=#space-character title="space
character">space characters</a>, followed by a single U+0027
- APOSTROPHE (<code>'</code>) character, followed by the <a href=#syntax-attribute-value title=syntax-attribute-value>attribute value</a>, which, in
+ APOSTROPHE character ('), followed by the <a href=#syntax-attribute-value title=syntax-attribute-value>attribute value</a>, which, in
addition to the requirements given above for attribute values,
- must not contain any literal U+0027 APOSTROPHE (<code>'</code>)
- characters, and finally followed by a second single U+0027
- APOSTROPHE (<code>'</code>) character.</p>
+ must not contain any literal U+0027 APOSTROPHE characters ('), and
+ finally followed by a second single U+0027 APOSTROPHE character
+ (').</p>
<div class=example>
@@ -68968,11 +68964,11 @@
characters</a>, followed by a single U+003D EQUALS SIGN
character, followed by zero or more <a href=#space-character title="space
character">space characters</a>, followed by a single U+0022
- QUOTATION MARK (<code>"</code>) character, followed by the <a href=#syntax-attribute-value title=syntax-attribute-value>attribute value</a>, which, in
+ QUOTATION MARK character ("), followed by the <a href=#syntax-attribute-value title=syntax-attribute-value>attribute value</a>, which, in
addition to the requirements given above for attribute values,
- must not contain any literal U+0022 QUOTATION MARK
- (<code>"</code>) characters, and finally followed by a second
- single U+0022 QUOTATION MARK (<code>"</code>) character.</p>
+ must not contain any literal U+0022 QUOTATION MARK characters ("),
+ and finally followed by a second single U+0022 QUOTATION MARK
+ character (").</p>
<div class=example>
@@ -69261,9 +69257,9 @@
to escape characters that couldn't otherwise legally be included in
<a href=#syntax-text title=syntax-text>text</a>.</p>
- <p>Character references must start with a U+0026 AMPERSAND
- (<code>&</code>). Following this, there are three possible kinds
- of character references:</p>
+ <p>Character references must start with a U+0026 AMPERSAND character
+ (&). Following this, there are three possible kinds of character
+ references:</p>
<dl><dt>Named character references</dt>
@@ -69276,22 +69272,22 @@
<dt>Decimal numeric character reference</dt>
<dd>The ampersand must be followed by a U+0023 NUMBER SIGN
- (<code>#</code>) character, followed by one or more digits in the
- range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9), representing
- a base-ten integer that corresponds to a Unicode code point that is
- allowed according to the definition below. The digits must then be
- followed by a U+003B SEMICOLON character (;).</dd>
+ character (#), followed by one or more digits in the range U+0030
+ DIGIT ZERO (0) to U+0039 DIGIT NINE (9), representing a base-ten
+ integer that corresponds to a Unicode code point that is allowed
+ according to the definition below. The digits must then be followed
+ by a U+003B SEMICOLON character (;).</dd>
<dt>Hexadecimal numeric character reference</dt>
<dd>The ampersand must be followed by a U+0023 NUMBER SIGN
- (<code>#</code>) character, which must be followed by either a
- U+0078 LATIN SMALL LETTER X character (x) or a U+0058 LATIN CAPITAL
- LETTER X character (X), which must then be followed by one or more
- digits in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9),
- U+0061 LATIN SMALL LETTER A to U+0066 LATIN SMALL LETTER F, and
- U+0041 LATIN CAPITAL LETTER A to U+0046 LATIN CAPITAL LETTER F,
+ character (#), which must be followed by either a U+0078 LATIN
+ SMALL LETTER X character (x) or a U+0058 LATIN CAPITAL LETTER X
+ character (X), which must then be followed by one or more digits in
+ the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9), U+0061
+ LATIN SMALL LETTER A to U+0066 LATIN SMALL LETTER F, and U+0041
+ LATIN CAPITAL LETTER A to U+0046 LATIN CAPITAL LETTER F,
representing a base-sixteen integer that corresponds to a Unicode
code point that is allowed according to the definition below. The
digits must then be followed by a U+003B SEMICOLON character
@@ -69307,8 +69303,7 @@
ampersand</dfn> is a U+0026 AMPERSAND character (&) that is
followed by some <a href=#syntax-text title=syntax-text>text</a> other than a
<a href=#space-character>space character</a>, a U+003C LESS-THAN SIGN character
- (<), or another U+0026 AMPERSAND character
- (<code>&</code>).</p>
+ (<), or another U+0026 AMPERSAND character (&).</p>
<h4 id=cdata-sections><span class=secno>11.1.5 </span>CDATA sections</h4>
@@ -69335,11 +69330,11 @@
MARK, U+002D HYPHEN-MINUS, U+002D HYPHEN-MINUS (<code title=""><!--</code>). Following this sequence, the comment may
have <a href=#syntax-text title=syntax-text>text</a>, with the additional
restriction that the text must not start with a single U+003E
- GREATER-THAN SIGN (>) character, nor start with a U+002D
- HYPHEN-MINUS character (-) followed by a
- U+003E GREATER-THAN SIGN (>) character, nor contain two
- consecutive U+002D HYPHEN-MINUS (<code title="">-</code>)
- characters, nor end with a U+002D HYPHEN-MINUS (<code title="">-</code>) character. Finally, the comment must be ended by
+ GREATER-THAN SIGN character (>), nor start with a U+002D
+ HYPHEN-MINUS character (-) followed by a U+003E GREATER-THAN SIGN
+ (>) character, nor contain two consecutive U+002D HYPHEN-MINUS
+ characters (<code title="">--</code>), nor end with a U+002D
+ HYPHEN-MINUS character (-). Finally, the comment must be ended by
the three character sequence U+002D HYPHEN-MINUS, U+002D
HYPHEN-MINUS, U+003E GREATER-THAN SIGN (<code title="">--></code>).</p>
@@ -71833,8 +71828,8 @@
<h5 id=markup-declaration-open-state><span class=secno>11.2.4.44 </span><dfn>Markup declaration open state</dfn></h5>
- <p>If the next two characters are both U+002D HYPHEN-MINUS (-)
- characters, consume those two characters, create a comment token
+ <p>If the next two characters are both U+002D HYPHEN-MINUS
+ characters (-), consume those two characters, create a comment token
whose data is the empty string, and switch to the <a href=#comment-start-state>comment
start state</a>.</p>
@@ -71943,8 +71938,8 @@
<dt>U+000C FORM FEED (FF)</dt>
<!--<dt>U+000D CARRIAGE RETURN (CR)</dt>-->
<dt>U+0020 SPACE</dt>
- <dd><a href=#parse-error>Parse error</a>. Append two U+002D HYPHEN-MINUS (-)
- characters and the <a href=#current-input-character>current input character</a> to the
+ <dd><a href=#parse-error>Parse error</a>. Append two U+002D HYPHEN-MINUS
+ characters (-) and the <a href=#current-input-character>current input character</a> to the
comment token's data. Switch to the <a href=#comment-end-space-state>comment end space
state</a>.</dd>
@@ -71966,8 +71961,8 @@
be treated as live code -->
<dt>Anything else</dt>
- <dd><a href=#parse-error>Parse error</a>. Append two U+002D HYPHEN-MINUS (-)
- characters and the <a href=#current-input-character>current input character</a> to the
+ <dd><a href=#parse-error>Parse error</a>. Append two U+002D HYPHEN-MINUS
+ characters (-) and the <a href=#current-input-character>current input character</a> to the
comment token's data. Switch to the <a href=#comment-state>comment
state</a>.</dd>
@@ -71976,7 +71971,7 @@
<p>Consume the <a href=#next-input-character>next input character</a>:</p>
<dl class=switch><dt>U+002D HYPHEN-MINUS (-)</dt>
- <dd>Append two U+002D HYPHEN-MINUS (-) characters and a U+0021
+ <dd>Append two U+002D HYPHEN-MINUS characters (-) and a U+0021
EXCLAMATION MARK character (!) to the comment token's data. Switch
to the <a href=#comment-end-dash-state>comment end dash state</a>.</dd>
@@ -71990,7 +71985,7 @@
comment in comment end state -->
<dt>Anything else</dt>
- <dd>Append two U+002D HYPHEN-MINUS (-) characters, a U+0021
+ <dd>Append two U+002D HYPHEN-MINUS characters (-), a U+0021
EXCLAMATION MARK character (!), and the <a href=#current-input-character>current input
character</a> to the comment token's data. Switch to the
<a href=#comment-state>comment state</a>.</dd>
@@ -72641,17 +72636,18 @@
error</a>. No characters are consumed, and nothing is
returned.</p>
- <p>If the last character matched is not a U+003B SEMICOLON (<code title="">;</code>), there is a <a href=#parse-error>parse error</a>.</p>
+ <p>If the last character matched is not a U+003B SEMICOLON
+ character (;), there is a <a href=#parse-error>parse error</a>.</p>
<p>If the character reference is being consumed <a href=#character-reference-in-attribute-value-state title="character reference in attribute value state">as part of an
attribute</a>, and the last character matched is not a U+003B
- SEMICOLON character (<code title="">;</code>), and the next
- character is in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT
- NINE (9), U+0041 LATIN CAPITAL LETTER A to U+005A LATIN CAPITAL
- LETTER Z, or U+0061 LATIN SMALL LETTER A to U+007A LATIN SMALL
- LETTER Z, then, for historical reasons, all the characters that
- were matched after the U+0026 AMPERSAND character (&) must be
- unconsumed, and nothing is returned.</p>
+ SEMICOLON character (;), and the next character is in the range
+ U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9), U+0041 LATIN
+ CAPITAL LETTER A to U+005A LATIN CAPITAL LETTER Z, or U+0061 LATIN
+ SMALL LETTER A to U+007A LATIN SMALL LETTER Z, then, for
+ historical reasons, all the characters that were matched after the
+ U+0026 AMPERSAND character (&) must be unconsumed, and nothing
+ is returned.</p>
<p>Otherwise, return a character token for the character
corresponding to the character reference name (as given by the
@@ -76748,19 +76744,18 @@
<dd>
- <p>Append a U+003C LESS-THAN SIGN (<code title=""><</code>)
- character, followed by the element's tag name. (For nodes
- created by the <a href=#html-parser>HTML parser</a> or <code title="">Document.createElement()</code>, the tag name will be
+ <p>Append a U+003C LESS-THAN SIGN character character (<),
+ followed by the element's tag name. (For nodes created by the
+ <a href=#html-parser>HTML parser</a> or <code title="">Document.createElement()</code>, the tag name will be
lowercase.)</p>
<p>For each attribute that the element has, append a U+0020
SPACE character, the attribute's name (which, for attributes
set by the <a href=#html-parser>HTML parser</a> or by <code title="">Element.setAttributeNode()</code> or <code title="">Element.setAttribute()</code>, will be lowercase), a
- U+003D EQUALS SIGN (<code title="">=</code>) character, a
- U+0022 QUOTATION MARK (<code title="">"</code>)
- character, the attribute's value, <a href=#escapingString title="escaping a
- string">escaped as described below</a> in <i>attribute
- mode</i>, and a second U+0022 QUOTATION MARK (<code title="">"</code>) character.</p>
+ U+003D EQUALS SIGN character (=), a U+0022 QUOTATION MARK
+ character ("), the attribute's value, <a href=#escapingString title="escaping a string">escaped as described below</a> in
+ <i>attribute mode</i>, and a second U+0022 QUOTATION MARK
+ character (").</p>
<p>While the exact order of attributes is UA-defined, and may
depend on factors such as the order that the attributes were
@@ -76768,8 +76763,7 @@
such that consecutive invocations of this algorithm serialize an
element's attributes in the same order.</p>
- <p>Append a U+003E GREATER-THAN SIGN (<code title="">></code>)
- character.</p>
+ <p>Append a U+003E GREATER-THAN SIGN character (>).</p>
<p>If <var title="">current node</var> is an
<code><a href=#the-area-element>area</a></code>, <code><a href=#the-base-element>base</a></code>, <code><a href=#basefont>basefont</a></code>,
@@ -76790,8 +76784,10 @@
<p>Append the value of running the <a href=#html-fragment-serialization-algorithm>HTML fragment
serialization algorithm</a> on the <var title="">current
node</var> element (thus recursing into this algorithm for
- that element), followed by a U+003C LESS-THAN SIGN (<code title=""><</code>) character, a U+002F SOLIDUS (<code title="">/</code>) character, the element's tag name again,
- and finally a U+003E GREATER-THAN SIGN (<code title="">></code>) character.</p>
+ that element), followed by a U+003C LESS-THAN SIGN character
+ (<), a U+002F SOLIDUS character (/), the element's tag name
+ again, and finally a U+003E GREATER-THAN SIGN character
+ (>).</p>
</dd>
@@ -79405,7 +79401,7 @@
string "<code title="">]]></code>".</li> (these can be split)-->
<li>A <code>Comment</code> node whose data contains two adjacent
- U+002D HYPHEN-MINUS (-) characters or ends with such a
+ U+002D HYPHEN-MINUS characters (-) or ends with such a
character.</li>
<li>A <code>ProcessingInstruction</code> node whose target name is
Modified: index
===================================================================
--- index 2009-10-21 11:58:58 UTC (rev 4260)
+++ index 2009-10-21 12:12:14 UTC (rev 4261)
@@ -4708,9 +4708,9 @@
<!-- http://www.hixie.ch/tests/adhoc/html/navigation/javascript-url/ -->
- <!-- XXX this should be tested in the case of a browsing context
- that was navigated to about:blank after having been elsewhere,
- as opposed to the about:blank used at the time of the browsing
+ <!-- this should be tested in the case of a browsing context that
+ was navigated to about:blank after having been elsewhere, as
+ opposed to the about:blank used at the time of the browsing
context's creation. -->
<p>If <var title="">fallback base url</var> is
@@ -50630,9 +50630,9 @@
"NETWORK" followed by a U+003A COLON character (:)), then set <var title="">mode</var> to "online whitelist" and jump back to the step
labeled "start of line".</li>
- <li><p>If <var title="">line</var> ends with a U+003A COLON (:)
- character, then set <var title="">mode</var> to "unknown" and jump
- back to the step labeled "start of line".</li>
+ <li><p>If <var title="">line</var> ends with a U+003A COLON
+ character (:), then set <var title="">mode</var> to "unknown" and
+ jump back to the step labeled "start of line".</li>
<li><p>This is either a data line or it is syntactically
incorrect.</li>
@@ -59675,14 +59675,14 @@
<p>A DOCTYPE must consist of the following characters, in this
order:</p>
- <ol class=brief><li>A U+003C LESS-THAN SIGN (<code><</code>) character.</li>
- <li>A U+0021 EXCLAMATION MARK (<code>!</code>) character.</li>
+ <ol class=brief><li>A U+003C LESS-THAN SIGN character (<).</li>
+ <li>A U+0021 EXCLAMATION MARK character (!).</li>
<li>A string that is an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the string "<code title="">DOCTYPE</code>".</li>
<li>One or more <a href=#space-character title="space character">space characters</a>.</li>
<li>A string that is an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the string "<code title="">HTML</code>".</li>
<li>Optionally, a <a href=#doctype-legacy-string>DOCTYPE legacy string</a> (defined below).</li>
<li>Zero or more <a href=#space-character title="space character">space characters</a>.</li>
- <li>A U+003E GREATER-THAN SIGN (<code>></code>) character.</li>
+ <li>A U+003E GREATER-THAN SIGN character (>).</li>
</ol><p class=note>In other words, <code><!DOCTYPE HTML></code>,
case-insensitively.</p>
@@ -59785,9 +59785,7 @@
end tag, no content can be put between the start tag and the end
tag). <a href=#foreign-elements>Foreign elements</a> whose start tag is <em>not</em>
marked as self-closing can have <a href=#syntax-text title=syntax-text>text</a>, <a href=#syntax-charref title=syntax-charref>character references</a>, <a href=#syntax-cdata title=syntax-cdata>CDATA sections</a>, other <a href=#syntax-elements title=syntax-elements>elements</a>, and <a href=#syntax-comments title=syntax-comments>comments</a>, but the text must not
- contain the character U+003C LESS-THAN SIGN (<code><</code>) or
- an <a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous
- ampersand</a>.</p>
+ contain the character U+003C LESS-THAN SIGN (<) or an <a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous ampersand</a>.</p>
<div class=note>
@@ -59814,9 +59812,8 @@
</div>
<p><a href=#normal-elements>Normal elements</a> can have <a href=#syntax-text title=syntax-text>text</a>, <a href=#syntax-charref title=syntax-charref>character references</a>, other <a href=#syntax-elements title=syntax-elements>elements</a>, and <a href=#syntax-comments title=syntax-comments>comments</a>, but the text must not
- contain the character U+003C LESS-THAN SIGN (<code><</code>) or
- an <a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous
- ampersand</a>. Some <a href=#normal-elements>normal elements</a> also have <a href=#element-restrictions>yet more restrictions</a> on what
+ contain the character U+003C LESS-THAN SIGN (<) or an <a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous ampersand</a>. Some
+ <a href=#normal-elements>normal elements</a> also have <a href=#element-restrictions>yet more restrictions</a> on what
content they are allowed to hold, beyond the restrictions imposed by
the content model and those described in this paragraph. Those
restrictions are described below.</p>
@@ -59838,7 +59835,7 @@
following format:</p>
<ol><li>The first character of a start tag must be a U+003C LESS-THAN
- SIGN (<code><</code>).</li>
+ SIGN character (<).</li>
<li>The next few characters of a start tag must be the element's
<a href=#syntax-tag-name title=syntax-tag-name>tag name</a>.</li>
@@ -59856,13 +59853,13 @@
<li>Then, if the element is one of the <a href=#void-elements>void elements</a>,
or if the element is a <a href=#foreign-elements title="foreign elements">foreign
- element</a>, then there may be a single U+002F SOLIDUS
- (<code>/</code>) character. This character has no effect on
- <a href=#void-elements>void elements</a>, but on <a href=#foreign-elements>foreign elements</a> it
- marks the start tag as self-closing.</li>
+ element</a>, then there may be a single U+002F SOLIDUS character
+ (/). This character has no effect on <a href=#void-elements>void elements</a>,
+ but on <a href=#foreign-elements>foreign elements</a> it marks the start tag as
+ self-closing.</li>
<li>Finally, start tags must be closed by a U+003E GREATER-THAN
- SIGN (<code>></code>) character.</li>
+ SIGN character (>).</li>
</ol><h5 id=end-tags><span class=secno>9.1.2.2 </span>End tags</h5>
@@ -59870,10 +59867,10 @@
following format:</p>
<ol><li>The first character of an end tag must be a U+003C LESS-THAN
- SIGN (<code><</code>).</li>
+ SIGN character (<).</li>
<li>The second character of an end tag must be a U+002F SOLIDUS
- (<code>/</code>).</li>
+ character (/).</li>
<li>The next few characters of an end tag must be the element's
<a href=#syntax-tag-name title=syntax-tag-name>tag name</a>.</li>
@@ -59881,8 +59878,8 @@
<li>After the tag name, there may be one or more <a href=#space-character title="space
character">space characters</a>.</li>
- <li>Finally, end tags must be closed by a U+003E GREATER-THAN
- SIGN (<code>></code>) character.</li>
+ <li>Finally, end tags must be closed by a U+003E GREATER-THAN SIGN
+ character (>).</li>
</ol><h5 id=attributes><span class=secno>9.1.2.3 </span>Attributes</h5>
@@ -59939,12 +59936,11 @@
character">space characters</a>, followed by the <a href=#syntax-attribute-value title=syntax-attribute-value>attribute value</a>, which, in
addition to the requirements given above for attribute values,
must not contain any literal <a href=#space-character title="space character">space
- characters</a>, any U+0022 QUOTATION MARK (<code>"</code>)
- characters, U+0027 APOSTROPHE (<code>'</code>) characters,
- U+003D EQUALS SIGN (<code>=</code>) characters, U+003C LESS-THAN
- SIGN (<code><</code>) characters, U+003E GREATER-THAN SIGN
- (<code>></code>) characters, or U+0060 GRAVE ACCENT (`)
- characters, and must not be the empty string.</p>
+ characters</a>, any U+0022 QUOTATION MARK characters ("),
+ U+0027 APOSTROPHE characters ('), U+003D EQUALS SIGN
+ characters (=), U+003C LESS-THAN SIGN characters (<), U+003E
+ GREATER-THAN SIGN characters (>), or U+0060 GRAVE ACCENT
+ characters (`), and must not be the empty string.</p>
<!-- The ` character is in this list on a temporary basis, waiting
for IE to fix it's parsing bug whereby it treats ` as an
@@ -60001,11 +59997,11 @@
characters</a>, followed by a single U+003D EQUALS SIGN
character, followed by zero or more <a href=#space-character title="space
character">space characters</a>, followed by a single U+0027
- APOSTROPHE (<code>'</code>) character, followed by the <a href=#syntax-attribute-value title=syntax-attribute-value>attribute value</a>, which, in
+ APOSTROPHE character ('), followed by the <a href=#syntax-attribute-value title=syntax-attribute-value>attribute value</a>, which, in
addition to the requirements given above for attribute values,
- must not contain any literal U+0027 APOSTROPHE (<code>'</code>)
- characters, and finally followed by a second single U+0027
- APOSTROPHE (<code>'</code>) character.</p>
+ must not contain any literal U+0027 APOSTROPHE characters ('), and
+ finally followed by a second single U+0027 APOSTROPHE character
+ (').</p>
<div class=example>
@@ -60031,11 +60027,11 @@
characters</a>, followed by a single U+003D EQUALS SIGN
character, followed by zero or more <a href=#space-character title="space
character">space characters</a>, followed by a single U+0022
- QUOTATION MARK (<code>"</code>) character, followed by the <a href=#syntax-attribute-value title=syntax-attribute-value>attribute value</a>, which, in
+ QUOTATION MARK character ("), followed by the <a href=#syntax-attribute-value title=syntax-attribute-value>attribute value</a>, which, in
addition to the requirements given above for attribute values,
- must not contain any literal U+0022 QUOTATION MARK
- (<code>"</code>) characters, and finally followed by a second
- single U+0022 QUOTATION MARK (<code>"</code>) character.</p>
+ must not contain any literal U+0022 QUOTATION MARK characters ("),
+ and finally followed by a second single U+0022 QUOTATION MARK
+ character (").</p>
<div class=example>
@@ -60324,9 +60320,9 @@
to escape characters that couldn't otherwise legally be included in
<a href=#syntax-text title=syntax-text>text</a>.</p>
- <p>Character references must start with a U+0026 AMPERSAND
- (<code>&</code>). Following this, there are three possible kinds
- of character references:</p>
+ <p>Character references must start with a U+0026 AMPERSAND character
+ (&). Following this, there are three possible kinds of character
+ references:</p>
<dl><dt>Named character references</dt>
@@ -60339,22 +60335,22 @@
<dt>Decimal numeric character reference</dt>
<dd>The ampersand must be followed by a U+0023 NUMBER SIGN
- (<code>#</code>) character, followed by one or more digits in the
- range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9), representing
- a base-ten integer that corresponds to a Unicode code point that is
- allowed according to the definition below. The digits must then be
- followed by a U+003B SEMICOLON character (;).</dd>
+ character (#), followed by one or more digits in the range U+0030
+ DIGIT ZERO (0) to U+0039 DIGIT NINE (9), representing a base-ten
+ integer that corresponds to a Unicode code point that is allowed
+ according to the definition below. The digits must then be followed
+ by a U+003B SEMICOLON character (;).</dd>
<dt>Hexadecimal numeric character reference</dt>
<dd>The ampersand must be followed by a U+0023 NUMBER SIGN
- (<code>#</code>) character, which must be followed by either a
- U+0078 LATIN SMALL LETTER X character (x) or a U+0058 LATIN CAPITAL
- LETTER X character (X), which must then be followed by one or more
- digits in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9),
- U+0061 LATIN SMALL LETTER A to U+0066 LATIN SMALL LETTER F, and
- U+0041 LATIN CAPITAL LETTER A to U+0046 LATIN CAPITAL LETTER F,
+ character (#), which must be followed by either a U+0078 LATIN
+ SMALL LETTER X character (x) or a U+0058 LATIN CAPITAL LETTER X
+ character (X), which must then be followed by one or more digits in
+ the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9), U+0061
+ LATIN SMALL LETTER A to U+0066 LATIN SMALL LETTER F, and U+0041
+ LATIN CAPITAL LETTER A to U+0046 LATIN CAPITAL LETTER F,
representing a base-sixteen integer that corresponds to a Unicode
code point that is allowed according to the definition below. The
digits must then be followed by a U+003B SEMICOLON character
@@ -60370,8 +60366,7 @@
ampersand</dfn> is a U+0026 AMPERSAND character (&) that is
followed by some <a href=#syntax-text title=syntax-text>text</a> other than a
<a href=#space-character>space character</a>, a U+003C LESS-THAN SIGN character
- (<), or another U+0026 AMPERSAND character
- (<code>&</code>).</p>
+ (<), or another U+0026 AMPERSAND character (&).</p>
<h4 id=cdata-sections><span class=secno>9.1.5 </span>CDATA sections</h4>
@@ -60398,11 +60393,11 @@
MARK, U+002D HYPHEN-MINUS, U+002D HYPHEN-MINUS (<code title=""><!--</code>). Following this sequence, the comment may
have <a href=#syntax-text title=syntax-text>text</a>, with the additional
restriction that the text must not start with a single U+003E
- GREATER-THAN SIGN (>) character, nor start with a U+002D
- HYPHEN-MINUS character (-) followed by a
- U+003E GREATER-THAN SIGN (>) character, nor contain two
- consecutive U+002D HYPHEN-MINUS (<code title="">-</code>)
- characters, nor end with a U+002D HYPHEN-MINUS (<code title="">-</code>) character. Finally, the comment must be ended by
+ GREATER-THAN SIGN character (>), nor start with a U+002D
+ HYPHEN-MINUS character (-) followed by a U+003E GREATER-THAN SIGN
+ (>) character, nor contain two consecutive U+002D HYPHEN-MINUS
+ characters (<code title="">--</code>), nor end with a U+002D
+ HYPHEN-MINUS character (-). Finally, the comment must be ended by
the three character sequence U+002D HYPHEN-MINUS, U+002D
HYPHEN-MINUS, U+003E GREATER-THAN SIGN (<code title="">--></code>).</p>
@@ -62896,8 +62891,8 @@
<h5 id=markup-declaration-open-state><span class=secno>9.2.4.44 </span><dfn>Markup declaration open state</dfn></h5>
- <p>If the next two characters are both U+002D HYPHEN-MINUS (-)
- characters, consume those two characters, create a comment token
+ <p>If the next two characters are both U+002D HYPHEN-MINUS
+ characters (-), consume those two characters, create a comment token
whose data is the empty string, and switch to the <a href=#comment-start-state>comment
start state</a>.</p>
@@ -63006,8 +63001,8 @@
<dt>U+000C FORM FEED (FF)</dt>
<!--<dt>U+000D CARRIAGE RETURN (CR)</dt>-->
<dt>U+0020 SPACE</dt>
- <dd><a href=#parse-error>Parse error</a>. Append two U+002D HYPHEN-MINUS (-)
- characters and the <a href=#current-input-character>current input character</a> to the
+ <dd><a href=#parse-error>Parse error</a>. Append two U+002D HYPHEN-MINUS
+ characters (-) and the <a href=#current-input-character>current input character</a> to the
comment token's data. Switch to the <a href=#comment-end-space-state>comment end space
state</a>.</dd>
@@ -63029,8 +63024,8 @@
be treated as live code -->
<dt>Anything else</dt>
- <dd><a href=#parse-error>Parse error</a>. Append two U+002D HYPHEN-MINUS (-)
- characters and the <a href=#current-input-character>current input character</a> to the
+ <dd><a href=#parse-error>Parse error</a>. Append two U+002D HYPHEN-MINUS
+ characters (-) and the <a href=#current-input-character>current input character</a> to the
comment token's data. Switch to the <a href=#comment-state>comment
state</a>.</dd>
@@ -63039,7 +63034,7 @@
<p>Consume the <a href=#next-input-character>next input character</a>:</p>
<dl class=switch><dt>U+002D HYPHEN-MINUS (-)</dt>
- <dd>Append two U+002D HYPHEN-MINUS (-) characters and a U+0021
+ <dd>Append two U+002D HYPHEN-MINUS characters (-) and a U+0021
EXCLAMATION MARK character (!) to the comment token's data. Switch
to the <a href=#comment-end-dash-state>comment end dash state</a>.</dd>
@@ -63053,7 +63048,7 @@
comment in comment end state -->
<dt>Anything else</dt>
- <dd>Append two U+002D HYPHEN-MINUS (-) characters, a U+0021
+ <dd>Append two U+002D HYPHEN-MINUS characters (-), a U+0021
EXCLAMATION MARK character (!), and the <a href=#current-input-character>current input
character</a> to the comment token's data. Switch to the
<a href=#comment-state>comment state</a>.</dd>
@@ -63704,17 +63699,18 @@
error</a>. No characters are consumed, and nothing is
returned.</p>
- <p>If the last character matched is not a U+003B SEMICOLON (<code title="">;</code>), there is a <a href=#parse-error>parse error</a>.</p>
+ <p>If the last character matched is not a U+003B SEMICOLON
+ character (;), there is a <a href=#parse-error>parse error</a>.</p>
<p>If the character reference is being consumed <a href=#character-reference-in-attribute-value-state title="character reference in attribute value state">as part of an
attribute</a>, and the last character matched is not a U+003B
- SEMICOLON character (<code title="">;</code>), and the next
- character is in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT
- NINE (9), U+0041 LATIN CAPITAL LETTER A to U+005A LATIN CAPITAL
- LETTER Z, or U+0061 LATIN SMALL LETTER A to U+007A LATIN SMALL
- LETTER Z, then, for historical reasons, all the characters that
- were matched after the U+0026 AMPERSAND character (&) must be
- unconsumed, and nothing is returned.</p>
+ SEMICOLON character (;), and the next character is in the range
+ U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9), U+0041 LATIN
+ CAPITAL LETTER A to U+005A LATIN CAPITAL LETTER Z, or U+0061 LATIN
+ SMALL LETTER A to U+007A LATIN SMALL LETTER Z, then, for
+ historical reasons, all the characters that were matched after the
+ U+0026 AMPERSAND character (&) must be unconsumed, and nothing
+ is returned.</p>
<p>Otherwise, return a character token for the character
corresponding to the character reference name (as given by the
@@ -67811,19 +67807,18 @@
<dd>
- <p>Append a U+003C LESS-THAN SIGN (<code title=""><</code>)
- character, followed by the element's tag name. (For nodes
- created by the <a href=#html-parser>HTML parser</a> or <code title="">Document.createElement()</code>, the tag name will be
+ <p>Append a U+003C LESS-THAN SIGN character character (<),
+ followed by the element's tag name. (For nodes created by the
+ <a href=#html-parser>HTML parser</a> or <code title="">Document.createElement()</code>, the tag name will be
lowercase.)</p>
<p>For each attribute that the element has, append a U+0020
SPACE character, the attribute's name (which, for attributes
set by the <a href=#html-parser>HTML parser</a> or by <code title="">Element.setAttributeNode()</code> or <code title="">Element.setAttribute()</code>, will be lowercase), a
- U+003D EQUALS SIGN (<code title="">=</code>) character, a
- U+0022 QUOTATION MARK (<code title="">"</code>)
- character, the attribute's value, <a href=#escapingString title="escaping a
- string">escaped as described below</a> in <i>attribute
- mode</i>, and a second U+0022 QUOTATION MARK (<code title="">"</code>) character.</p>
+ U+003D EQUALS SIGN character (=), a U+0022 QUOTATION MARK
+ character ("), the attribute's value, <a href=#escapingString title="escaping a string">escaped as described below</a> in
+ <i>attribute mode</i>, and a second U+0022 QUOTATION MARK
+ character (").</p>
<p>While the exact order of attributes is UA-defined, and may
depend on factors such as the order that the attributes were
@@ -67831,8 +67826,7 @@
such that consecutive invocations of this algorithm serialize an
element's attributes in the same order.</p>
- <p>Append a U+003E GREATER-THAN SIGN (<code title="">></code>)
- character.</p>
+ <p>Append a U+003E GREATER-THAN SIGN character (>).</p>
<p>If <var title="">current node</var> is an
<code><a href=#the-area-element>area</a></code>, <code><a href=#the-base-element>base</a></code>, <code><a href=#basefont>basefont</a></code>,
@@ -67853,8 +67847,10 @@
<p>Append the value of running the <a href=#html-fragment-serialization-algorithm>HTML fragment
serialization algorithm</a> on the <var title="">current
node</var> element (thus recursing into this algorithm for
- that element), followed by a U+003C LESS-THAN SIGN (<code title=""><</code>) character, a U+002F SOLIDUS (<code title="">/</code>) character, the element's tag name again,
- and finally a U+003E GREATER-THAN SIGN (<code title="">></code>) character.</p>
+ that element), followed by a U+003C LESS-THAN SIGN character
+ (<), a U+002F SOLIDUS character (/), the element's tag name
+ again, and finally a U+003E GREATER-THAN SIGN character
+ (>).</p>
</dd>
@@ -70468,7 +70464,7 @@
string "<code title="">]]></code>".</li> (these can be split)-->
<li>A <code>Comment</code> node whose data contains two adjacent
- U+002D HYPHEN-MINUS (-) characters or ends with such a
+ U+002D HYPHEN-MINUS characters (-) or ends with such a
character.</li>
<li>A <code>ProcessingInstruction</code> node whose target name is
Modified: source
===================================================================
--- source 2009-10-21 11:58:58 UTC (rev 4260)
+++ source 2009-10-21 12:12:14 UTC (rev 4261)
@@ -4294,9 +4294,9 @@
<!-- http://www.hixie.ch/tests/adhoc/html/navigation/javascript-url/ -->
- <!-- XXX this should be tested in the case of a browsing context
- that was navigated to about:blank after having been elsewhere,
- as opposed to the about:blank used at the time of the browsing
+ <!-- this should be tested in the case of a browsing context that
+ was navigated to about:blank after having been elsewhere, as
+ opposed to the about:blank used at the time of the browsing
context's creation. -->
<p>If <var title="">fallback base url</var> is
@@ -60208,9 +60208,9 @@
title="">mode</var> to "online whitelist" and jump back to the step
labeled "start of line".</p></li>
- <li><p>If <var title="">line</var> ends with a U+003A COLON (:)
- character, then set <var title="">mode</var> to "unknown" and jump
- back to the step labeled "start of line".</p></li>
+ <li><p>If <var title="">line</var> ends with a U+003A COLON
+ character (:), then set <var title="">mode</var> to "unknown" and
+ jump back to the step labeled "start of line".</p></li>
<li><p>This is either a data line or it is syntactically
incorrect.</p></li>
@@ -66066,7 +66066,7 @@
<ol>
<li><p>Parse <var title="">sqlStatement</var> as a SQL statement,
- with the exception that U+003F QUESTION MARK (?) characters can be
+ with the exception that U+003F QUESTION MARK characters (?) can be
used in place of SQL literals in the statement. <a
href="#refsSQL">[SQL]</a></p></li>
@@ -77172,14 +77172,14 @@
order:</p>
<ol class="brief">
- <li>A U+003C LESS-THAN SIGN (<code><</code>) character.</li>
- <li>A U+0021 EXCLAMATION MARK (<code>!</code>) character.</li>
+ <li>A U+003C LESS-THAN SIGN character (<).</li>
+ <li>A U+0021 EXCLAMATION MARK character (!).</li>
<li>A string that is an <span>ASCII case-insensitive</span> match for the string "<code title="">DOCTYPE</code>".</li>
<li>One or more <span title="space character">space characters</span>.</li>
<li>A string that is an <span>ASCII case-insensitive</span> match for the string "<code title="">HTML</code>".</li>
<li>Optionally, a <span>DOCTYPE legacy string</span> (defined below).</li>
<li>Zero or more <span title="space character">space characters</span>.</li>
- <li>A U+003E GREATER-THAN SIGN (<code>></code>) character.</li>
+ <li>A U+003E GREATER-THAN SIGN character (>).</li>
</ol>
<p class="note">In other words, <code><!DOCTYPE HTML></code>,
@@ -77304,9 +77304,8 @@
title="syntax-cdata">CDATA sections</span>, other <span
title="syntax-elements">elements</span>, and <span
title="syntax-comments">comments</span>, but the text must not
- contain the character U+003C LESS-THAN SIGN (<code><</code>) or
- an <span title="syntax-ambiguous-ampersand">ambiguous
- ampersand</span>.</p>
+ contain the character U+003C LESS-THAN SIGN (<) or an <span
+ title="syntax-ambiguous-ampersand">ambiguous ampersand</span>.</p>
<div class="note">
@@ -77339,9 +77338,9 @@
title="syntax-charref">character references</span>, other <span
title="syntax-elements">elements</span>, and <span
title="syntax-comments">comments</span>, but the text must not
- contain the character U+003C LESS-THAN SIGN (<code><</code>) or
- an <span title="syntax-ambiguous-ampersand">ambiguous
- ampersand</span>. Some <span>normal elements</span> also have <a
+ contain the character U+003C LESS-THAN SIGN (<) or an <span
+ title="syntax-ambiguous-ampersand">ambiguous ampersand</span>. Some
+ <span>normal elements</span> also have <a
href="#element-restrictions">yet more restrictions</a> on what
content they are allowed to hold, beyond the restrictions imposed by
the content model and those described in this paragraph. Those
@@ -77366,7 +77365,7 @@
<ol>
<li>The first character of a start tag must be a U+003C LESS-THAN
- SIGN (<code><</code>).</li>
+ SIGN character (<).</li>
<li>The next few characters of a start tag must be the element's
<span title="syntax-tag-name">tag name</span>.</li>
@@ -77387,13 +77386,13 @@
<li>Then, if the element is one of the <span>void elements</span>,
or if the element is a <span title="foreign elements">foreign
- element</span>, then there may be a single U+002F SOLIDUS
- (<code>/</code>) character. This character has no effect on
- <span>void elements</span>, but on <span>foreign elements</span> it
- marks the start tag as self-closing.</li>
+ element</span>, then there may be a single U+002F SOLIDUS character
+ (/). This character has no effect on <span>void elements</span>,
+ but on <span>foreign elements</span> it marks the start tag as
+ self-closing.</li>
<li>Finally, start tags must be closed by a U+003E GREATER-THAN
- SIGN (<code>></code>) character.</li>
+ SIGN character (>).</li>
</ol>
@@ -77406,10 +77405,10 @@
<ol>
<li>The first character of an end tag must be a U+003C LESS-THAN
- SIGN (<code><</code>).</li>
+ SIGN character (<).</li>
<li>The second character of an end tag must be a U+002F SOLIDUS
- (<code>/</code>).</li>
+ character (/).</li>
<li>The next few characters of an end tag must be the element's
<span title="syntax-tag-name">tag name</span>.</li>
@@ -77417,8 +77416,8 @@
<li>After the tag name, there may be one or more <span title="space
character">space characters</span>.</li>
- <li>Finally, end tags must be closed by a U+003E GREATER-THAN
- SIGN (<code>></code>) character.</li>
+ <li>Finally, end tags must be closed by a U+003E GREATER-THAN SIGN
+ character (>).</li>
</ol>
@@ -77485,12 +77484,11 @@
title="syntax-attribute-value">attribute value</span>, which, in
addition to the requirements given above for attribute values,
must not contain any literal <span title="space character">space
- characters</span>, any U+0022 QUOTATION MARK (<code>"</code>)
- characters, U+0027 APOSTROPHE (<code>'</code>) characters,
- U+003D EQUALS SIGN (<code>=</code>) characters, U+003C LESS-THAN
- SIGN (<code><</code>) characters, U+003E GREATER-THAN SIGN
- (<code>></code>) characters, or U+0060 GRAVE ACCENT (`)
- characters, and must not be the empty string.</p>
+ characters</span>, any U+0022 QUOTATION MARK characters ("),
+ U+0027 APOSTROPHE characters ('), U+003D EQUALS SIGN
+ characters (=), U+003C LESS-THAN SIGN characters (<), U+003E
+ GREATER-THAN SIGN characters (>), or U+0060 GRAVE ACCENT
+ characters (`), and must not be the empty string.</p>
<!-- The ` character is in this list on a temporary basis, waiting
for IE to fix it's parsing bug whereby it treats ` as an
@@ -77549,12 +77547,12 @@
characters</span>, followed by a single U+003D EQUALS SIGN
character, followed by zero or more <span title="space
character">space characters</span>, followed by a single U+0027
- APOSTROPHE (<code>'</code>) character, followed by the <span
+ APOSTROPHE character ('), followed by the <span
title="syntax-attribute-value">attribute value</span>, which, in
addition to the requirements given above for attribute values,
- must not contain any literal U+0027 APOSTROPHE (<code>'</code>)
- characters, and finally followed by a second single U+0027
- APOSTROPHE (<code>'</code>) character.</p>
+ must not contain any literal U+0027 APOSTROPHE characters ('), and
+ finally followed by a second single U+0027 APOSTROPHE character
+ (').</p>
<div class="example">
@@ -77581,12 +77579,12 @@
characters</span>, followed by a single U+003D EQUALS SIGN
character, followed by zero or more <span title="space
character">space characters</span>, followed by a single U+0022
- QUOTATION MARK (<code>"</code>) character, followed by the <span
+ QUOTATION MARK character ("), followed by the <span
title="syntax-attribute-value">attribute value</span>, which, in
addition to the requirements given above for attribute values,
- must not contain any literal U+0022 QUOTATION MARK
- (<code>"</code>) characters, and finally followed by a second
- single U+0022 QUOTATION MARK (<code>"</code>) character.</p>
+ must not contain any literal U+0022 QUOTATION MARK characters ("),
+ and finally followed by a second single U+0022 QUOTATION MARK
+ character (").</p>
<div class="example">
@@ -77903,9 +77901,9 @@
to escape characters that couldn't otherwise legally be included in
<span title="syntax-text">text</span>.</p>
- <p>Character references must start with a U+0026 AMPERSAND
- (<code>&</code>). Following this, there are three possible kinds
- of character references:</p>
+ <p>Character references must start with a U+0026 AMPERSAND character
+ (&). Following this, there are three possible kinds of character
+ references:</p>
<dl>
@@ -77920,22 +77918,22 @@
<dt>Decimal numeric character reference</dt>
<dd>The ampersand must be followed by a U+0023 NUMBER SIGN
- (<code>#</code>) character, followed by one or more digits in the
- range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9), representing
- a base-ten integer that corresponds to a Unicode code point that is
- allowed according to the definition below. The digits must then be
- followed by a U+003B SEMICOLON character (;).</dd>
+ character (#), followed by one or more digits in the range U+0030
+ DIGIT ZERO (0) to U+0039 DIGIT NINE (9), representing a base-ten
+ integer that corresponds to a Unicode code point that is allowed
+ according to the definition below. The digits must then be followed
+ by a U+003B SEMICOLON character (;).</dd>
<dt>Hexadecimal numeric character reference</dt>
<dd>The ampersand must be followed by a U+0023 NUMBER SIGN
- (<code>#</code>) character, which must be followed by either a
- U+0078 LATIN SMALL LETTER X character (x) or a U+0058 LATIN CAPITAL
- LETTER X character (X), which must then be followed by one or more
- digits in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9),
- U+0061 LATIN SMALL LETTER A to U+0066 LATIN SMALL LETTER F, and
- U+0041 LATIN CAPITAL LETTER A to U+0046 LATIN CAPITAL LETTER F,
+ character (#), which must be followed by either a U+0078 LATIN
+ SMALL LETTER X character (x) or a U+0058 LATIN CAPITAL LETTER X
+ character (X), which must then be followed by one or more digits in
+ the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9), U+0061
+ LATIN SMALL LETTER A to U+0066 LATIN SMALL LETTER F, and U+0041
+ LATIN CAPITAL LETTER A to U+0046 LATIN CAPITAL LETTER F,
representing a base-sixteen integer that corresponds to a Unicode
code point that is allowed according to the definition below. The
digits must then be followed by a U+003B SEMICOLON character
@@ -77953,8 +77951,7 @@
ampersand</dfn> is a U+0026 AMPERSAND character (&) that is
followed by some <span title="syntax-text">text</span> other than a
<span>space character</span>, a U+003C LESS-THAN SIGN character
- (<), or another U+0026 AMPERSAND character
- (<code>&</code>).</p>
+ (<), or another U+0026 AMPERSAND character (&).</p>
<h4>CDATA sections</h4>
@@ -77983,12 +77980,11 @@
title=""><!--</code>). Following this sequence, the comment may
have <span title="syntax-text">text</span>, with the additional
restriction that the text must not start with a single U+003E
- GREATER-THAN SIGN (>) character, nor start with a U+002D
- HYPHEN-MINUS character (-) followed by a
- U+003E GREATER-THAN SIGN (>) character, nor contain two
- consecutive U+002D HYPHEN-MINUS (<code title="">-</code>)
- characters, nor end with a U+002D HYPHEN-MINUS (<code
- title="">-</code>) character. Finally, the comment must be ended by
+ GREATER-THAN SIGN character (>), nor start with a U+002D
+ HYPHEN-MINUS character (-) followed by a U+003E GREATER-THAN SIGN
+ (>) character, nor contain two consecutive U+002D HYPHEN-MINUS
+ characters (<code title="">--</code>), nor end with a U+002D
+ HYPHEN-MINUS character (-). Finally, the comment must be ended by
the three character sequence U+002D HYPHEN-MINUS, U+002D
HYPHEN-MINUS, U+003E GREATER-THAN SIGN (<code
title="">--></code>).</p>
@@ -80900,8 +80896,8 @@
<h5><dfn>Markup declaration open state</dfn></h5>
- <p>If the next two characters are both U+002D HYPHEN-MINUS (-)
- characters, consume those two characters, create a comment token
+ <p>If the next two characters are both U+002D HYPHEN-MINUS
+ characters (-), consume those two characters, create a comment token
whose data is the empty string, and switch to the <span>comment
start state</span>.</p>
@@ -81033,8 +81029,8 @@
<dt>U+000C FORM FEED (FF)</dt>
<!--<dt>U+000D CARRIAGE RETURN (CR)</dt>-->
<dt>U+0020 SPACE</dt>
- <dd><span>Parse error</span>. Append two U+002D HYPHEN-MINUS (-)
- characters and the <span>current input character</span> to the
+ <dd><span>Parse error</span>. Append two U+002D HYPHEN-MINUS
+ characters (-) and the <span>current input character</span> to the
comment token's data. Switch to the <span>comment end space
state</span>.</dd>
@@ -81056,8 +81052,8 @@
be treated as live code -->
<dt>Anything else</dt>
- <dd><span>Parse error</span>. Append two U+002D HYPHEN-MINUS (-)
- characters and the <span>current input character</span> to the
+ <dd><span>Parse error</span>. Append two U+002D HYPHEN-MINUS
+ characters (-) and the <span>current input character</span> to the
comment token's data. Switch to the <span>comment
state</span>.</dd>
@@ -81071,7 +81067,7 @@
<dl class="switch">
<dt>U+002D HYPHEN-MINUS (-)</dt>
- <dd>Append two U+002D HYPHEN-MINUS (-) characters and a U+0021
+ <dd>Append two U+002D HYPHEN-MINUS characters (-) and a U+0021
EXCLAMATION MARK character (!) to the comment token's data. Switch
to the <span>comment end dash state</span>.</dd>
@@ -81085,7 +81081,7 @@
comment in comment end state -->
<dt>Anything else</dt>
- <dd>Append two U+002D HYPHEN-MINUS (-) characters, a U+0021
+ <dd>Append two U+002D HYPHEN-MINUS characters (-), a U+0021
EXCLAMATION MARK character (!), and the <span>current input
character</span> to the comment token's data. Switch to the
<span>comment state</span>.</dd>
@@ -81835,19 +81831,19 @@
error</span>. No characters are consumed, and nothing is
returned.</p>
- <p>If the last character matched is not a U+003B SEMICOLON (<code
- title="">;</code>), there is a <span>parse error</span>.</p>
+ <p>If the last character matched is not a U+003B SEMICOLON
+ character (;), there is a <span>parse error</span>.</p>
<p>If the character reference is being consumed <span
title="character reference in attribute value state">as part of an
attribute</span>, and the last character matched is not a U+003B
- SEMICOLON character (<code title="">;</code>), and the next
- character is in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT
- NINE (9), U+0041 LATIN CAPITAL LETTER A to U+005A LATIN CAPITAL
- LETTER Z, or U+0061 LATIN SMALL LETTER A to U+007A LATIN SMALL
- LETTER Z, then, for historical reasons, all the characters that
- were matched after the U+0026 AMPERSAND character (&) must be
- unconsumed, and nothing is returned.</p>
+ SEMICOLON character (;), and the next character is in the range
+ U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9), U+0041 LATIN
+ CAPITAL LETTER A to U+005A LATIN CAPITAL LETTER Z, or U+0061 LATIN
+ SMALL LETTER A to U+007A LATIN SMALL LETTER Z, then, for
+ historical reasons, all the characters that were matched after the
+ U+0026 AMPERSAND character (&) must be unconsumed, and nothing
+ is returned.</p>
<p>Otherwise, return a character token for the character
corresponding to the character reference name (as given by the
@@ -86395,9 +86391,9 @@
<dd>
- <p>Append a U+003C LESS-THAN SIGN (<code title=""><</code>)
- character, followed by the element's tag name. (For nodes
- created by the <span>HTML parser</span> or <code
+ <p>Append a U+003C LESS-THAN SIGN character character (<),
+ followed by the element's tag name. (For nodes created by the
+ <span>HTML parser</span> or <code
title="">Document.createElement()</code>, the tag name will be
lowercase.)</p>
@@ -86406,12 +86402,11 @@
set by the <span>HTML parser</span> or by <code
title="">Element.setAttributeNode()</code> or <code
title="">Element.setAttribute()</code>, will be lowercase), a
- U+003D EQUALS SIGN (<code title="">=</code>) character, a
- U+0022 QUOTATION MARK (<code title="">"</code>)
- character, the attribute's value, <span title="escaping a
- string">escaped as described below</span> in <i>attribute
- mode</i>, and a second U+0022 QUOTATION MARK (<code
- title="">"</code>) character.</p>
+ U+003D EQUALS SIGN character (=), a U+0022 QUOTATION MARK
+ character ("), the attribute's value, <span
+ title="escaping a string">escaped as described below</span> in
+ <i>attribute mode</i>, and a second U+0022 QUOTATION MARK
+ character (").</p>
<p>While the exact order of attributes is UA-defined, and may
depend on factors such as the order that the attributes were
@@ -86419,8 +86414,7 @@
such that consecutive invocations of this algorithm serialize an
element's attributes in the same order.</p>
- <p>Append a U+003E GREATER-THAN SIGN (<code title="">></code>)
- character.</p>
+ <p>Append a U+003E GREATER-THAN SIGN character (>).</p>
<p>If <var title="">current node</var> is an
<code>area</code>, <code>base</code>, <code>basefont</code>,
@@ -86441,11 +86435,10 @@
<p>Append the value of running the <span>HTML fragment
serialization algorithm</span> on the <var title="">current
node</var> element (thus recursing into this algorithm for
- that element), followed by a U+003C LESS-THAN SIGN (<code
- title=""><</code>) character, a U+002F SOLIDUS (<code
- title="">/</code>) character, the element's tag name again,
- and finally a U+003E GREATER-THAN SIGN (<code
- title="">></code>) character.</p>
+ that element), followed by a U+003C LESS-THAN SIGN character
+ (<), a U+002F SOLIDUS character (/), the element's tag name
+ again, and finally a U+003E GREATER-THAN SIGN character
+ (>).</p>
</dd>
@@ -86990,7 +86983,7 @@
string "<code title="">]]></code>".</li> (these can be split)-->
<li>A <code>Comment</code> node whose data contains two adjacent
- U+002D HYPHEN-MINUS (-) characters or ends with such a
+ U+002D HYPHEN-MINUS characters (-) or ends with such a
character.</li>
<li>A <code>ProcessingInstruction</code> node whose target name is
More information about the Commit-Watchers
mailing list