Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[e] (0) Make more consistent use of '..' vs 'to' for ranges of Unicod…
…e characters and bytes.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=7809

git-svn-id: http://svn.whatwg.org/webapps@4187 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 20, 2009
1 parent b8432f7 commit 937a492
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 49 deletions.
34 changes: 17 additions & 17 deletions complete.html
Expand Up @@ -2542,9 +2542,9 @@ <h3 id=case-sensitivity-and-string-comparison><span class=secno>2.3 </span>Case-

<p>Comparing two strings in an <dfn id=ascii-case-insensitive>ASCII case-insensitive</dfn>
manner means comparing them exactly, code point for code point, except
that the characters in the range U+0041 .. U+005A (i.e. LATIN
that the characters in the range U+0041 to U+005A (i.e. LATIN
CAPITAL LETTER A to LATIN CAPITAL LETTER Z) and the corresponding
characters in the range U+0061 .. U+007A (i.e. LATIN SMALL LETTER A
characters in the range U+0061 to U+007A (i.e. LATIN SMALL LETTER A
to LATIN SMALL LETTER Z) are considered to also match.</p>

<p>Comparing two strings in a <dfn id=compatibility-caseless>compatibility caseless</dfn>
Expand All @@ -2556,15 +2556,15 @@ <h3 id=case-sensitivity-and-string-comparison><span class=secno>2.3 </span>Case-

<p><dfn id=converted-to-ascii-uppercase title="converted to ASCII uppercase">Converting a string to
ASCII uppercase</dfn> means replacing all characters in the range
U+0061 .. U+007A (i.e. LATIN SMALL LETTER A to LATIN SMALL LETTER Z)
with the corresponding characters in the range U+0041 .. U+005A
U+0061 to U+007A (i.e. LATIN SMALL LETTER A to LATIN SMALL LETTER Z)
with the corresponding characters in the range U+0041 to U+005A
(i.e. LATIN CAPITAL LETTER A to LATIN CAPITAL LETTER Z).</p>

<p><dfn id=converted-to-ascii-lowercase title="converted to ASCII lowercase">Converting a string to
ASCII lowercase</dfn> means replacing all characters in the range
U+0041 .. U+005A (i.e. LATIN CAPITAL LETTER A to LATIN CAPITAL
U+0041 to U+005A (i.e. LATIN CAPITAL LETTER A to LATIN CAPITAL
LETTER Z) with the corresponding characters in the range U+0061
.. U+007A (i.e. LATIN SMALL LETTER A to LATIN SMALL LETTER Z).</p>
to U+007A (i.e. LATIN SMALL LETTER A to LATIN SMALL LETTER Z).</p>

</div>

Expand Down Expand Up @@ -3381,7 +3381,7 @@ <h5 id=lists-of-integers><span class=secno>2.4.4.6 </span>Lists of integers</h5>


<!-- <dt>A U+002E FULL STOP character</dt> -->
<dt>A character in the range U+0001 .. U+001F, <!-- space --> U+0021 .. U+002B, <!-- comma --> U+002D .. U+002F, <!-- digits --> U+003A, <!-- semicolon --> U+003C .. U+0040, <!-- a-z --> U+005B .. U+0060, <!-- A-Z --> U+007b .. U+007F
<dt>A character in the range U+0001 to U+001F, <!-- space --> U+0021 to U+002B, <!-- comma --> U+002D to U+002F, <!-- digits --> U+003A, <!-- semicolon --> U+003C to U+0040, <!-- a-z --> U+005B to U+0060, <!-- A-Z --> U+007b to U+007F
(i.e. any other non-alphabetic ASCII character)</dt>

<!--
Expand Down Expand Up @@ -8286,7 +8286,7 @@ <h5 id=embedding-custom-non-visible-data><span class=secno>3.2.3.8 </span><dfn>E
<p>A <dfn id=custom-data-attribute>custom data attribute</dfn> is an attribute in no
namespace whose name starts with the string "<dfn id=attr-data-* title=attr-data-*><code>data-</code></dfn>", has at least one
character after the hyphen, is <a href=#xml-compatible>XML-compatible</a>, and
contains no characters in the range U+0041 .. U+005A (LATIN CAPITAL
contains no characters in the range U+0041 to U+005A (LATIN CAPITAL
LETTER A to LATIN CAPITAL LETTER Z).</p>

<p class=note>All attributes in <a href=#html-documents>HTML documents</a> get
Expand Down Expand Up @@ -20798,7 +20798,7 @@ <h4 id=the-embed-element><span class=secno>4.8.4 </span>The <dfn><code>embed</co
<p>Any (namespace-less) attribute may be specified on the
<code><a href=#the-embed-element>embed</a></code> element, so long as its name is
<a href=#xml-compatible>XML-compatible</a> and contains no characters in the range
U+0041 .. U+005A (LATIN CAPITAL LETTER A to LATIN CAPITAL LETTER
U+0041 to U+005A (LATIN CAPITAL LETTER A to LATIN CAPITAL LETTER
Z). These attributes are then passed as parameters to the
<a href=#plugin>plugin</a>.</p>

Expand Down Expand Up @@ -39629,8 +39629,8 @@ <h5 id=url-encoded-form-data><span class=secno>4.10.17.4 </span>URL-encoded form
following subsubsteps:</p>

<ol><!-- * - . _ 0-9 a-z A-Z --><li><p>If the character isn't in the range U+0020, U+002A,
U+002D, U+002E, U+0030 .. U+0039, U+0041 .. U+005A, U+005F,
U+0061 .. U+007A then replace the character with a string
U+002D, U+002E, U+0030 to U+0039, U+0041 to U+005A, U+005F,
U+0061 to U+007A then replace the character with a string
formed as follows: Start with the empty string, and then,
taking each byte of the character when expressed in the
selected character encoding in turn, append to the string a
Expand Down Expand Up @@ -66200,9 +66200,9 @@ <h6 id=protocol-overview><span class=secno>10.3.4.1.2 </span>Protocol overview</
\|/
Frame type byte &lt;-------------------------------------.
| | |
| `-- (0x00 .. 0x7F) --&gt; Data... --&gt; 0xFF --&gt;-+
| `-- (0x00 to 0x7F) --&gt; Data... --&gt; 0xFF --&gt;-+
| |
`-- (0x80 .. 0xFF) --&gt; Length --&gt; Data... -------&gt;-'</pre>
`-- (0x80 to 0xFF) --&gt; Length --&gt; Data... -------&gt;-'</pre>


<h6 id=design-philosophy><span class=secno>10.3.4.1.3 </span>Design philosophy</h6>
Expand Down Expand Up @@ -66307,7 +66307,7 @@ <h6 id=parsing-web-socket-urls><span class=secno>10.3.4.2.1 </span>Parsing Web S

<ol><li><p>If <var title="">protocol</var> is specified but is either
the empty string or contains characters that are not in the range
U+0021 .. U+007E, then fail this algorithm.</li>
U+0021 to U+007E, then fail this algorithm.</li>

<li><p>If the <var title="">url</var> string is not an
<a href=#absolute-url>absolute URL</a>, then fail this algorithm. <a href=#refsWEBADDRESSES>[WEBADDRESSES]</a></li>
Expand Down Expand Up @@ -66725,7 +66725,7 @@ <h6 id=handshake><span class=secno>10.3.4.3.1 </span>Handshake</h6>
<dd>Move on to the next step.</dd>


<dt>If the byte is in the range 0x41 .. 0x5A (ASCII A .. Z)</dt>
<dt>If the byte is in the range 0x41 to 0x5A (ASCII A-Z)</dt>

<dd>Append a byte whose value is the byte's value plus 0x20 to
the <var title="">name</var> byte array and redo this step for
Expand Down Expand Up @@ -68394,8 +68394,8 @@ <h3 id=writing><span class=secno>11.1 </span>Writing HTML documents</h3>

<p>Many strings in the HTML syntax (e.g. the names of elements and
their attributes) are case-insensitive, but only for characters in
the ranges U+0041 .. U+005A (LATIN CAPITAL LETTER A to LATIN CAPITAL
LETTER Z) and U+0061 .. U+007A (LATIN SMALL LETTER A to LATIN SMALL
the ranges U+0041 to U+005A (LATIN CAPITAL LETTER A to LATIN CAPITAL
LETTER Z) and U+0061 to U+007A (LATIN SMALL LETTER A to LATIN SMALL
LETTER Z). For convenience, in this section this is just referred to
as "case-insensitive".</p>

Expand Down
26 changes: 13 additions & 13 deletions index
Expand Up @@ -2371,9 +2371,9 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d

<p>Comparing two strings in an <dfn id=ascii-case-insensitive>ASCII case-insensitive</dfn>
manner means comparing them exactly, code point for code point, except
that the characters in the range U+0041 .. U+005A (i.e. LATIN
that the characters in the range U+0041 to U+005A (i.e. LATIN
CAPITAL LETTER A to LATIN CAPITAL LETTER Z) and the corresponding
characters in the range U+0061 .. U+007A (i.e. LATIN SMALL LETTER A
characters in the range U+0061 to U+007A (i.e. LATIN SMALL LETTER A
to LATIN SMALL LETTER Z) are considered to also match.</p>

<p>Comparing two strings in a <dfn id=compatibility-caseless>compatibility caseless</dfn>
Expand All @@ -2385,15 +2385,15 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d

<p><dfn id=converted-to-ascii-uppercase title="converted to ASCII uppercase">Converting a string to
ASCII uppercase</dfn> means replacing all characters in the range
U+0061 .. U+007A (i.e. LATIN SMALL LETTER A to LATIN SMALL LETTER Z)
with the corresponding characters in the range U+0041 .. U+005A
U+0061 to U+007A (i.e. LATIN SMALL LETTER A to LATIN SMALL LETTER Z)
with the corresponding characters in the range U+0041 to U+005A
(i.e. LATIN CAPITAL LETTER A to LATIN CAPITAL LETTER Z).</p>

<p><dfn id=converted-to-ascii-lowercase title="converted to ASCII lowercase">Converting a string to
ASCII lowercase</dfn> means replacing all characters in the range
U+0041 .. U+005A (i.e. LATIN CAPITAL LETTER A to LATIN CAPITAL
U+0041 to U+005A (i.e. LATIN CAPITAL LETTER A to LATIN CAPITAL
LETTER Z) with the corresponding characters in the range U+0061
.. U+007A (i.e. LATIN SMALL LETTER A to LATIN SMALL LETTER Z).</p>
to U+007A (i.e. LATIN SMALL LETTER A to LATIN SMALL LETTER Z).</p>

</div>

Expand Down Expand Up @@ -3210,7 +3210,7 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d


<!-- <dt>A U+002E FULL STOP character</dt> -->
<dt>A character in the range U+0001 .. U+001F, <!-- space --> U+0021 .. U+002B, <!-- comma --> U+002D .. U+002F, <!-- digits --> U+003A, <!-- semicolon --> U+003C .. U+0040, <!-- a-z --> U+005B .. U+0060, <!-- A-Z --> U+007b .. U+007F
<dt>A character in the range U+0001 to U+001F, <!-- space --> U+0021 to U+002B, <!-- comma --> U+002D to U+002F, <!-- digits --> U+003A, <!-- semicolon --> U+003C to U+0040, <!-- a-z --> U+005B to U+0060, <!-- A-Z --> U+007b to U+007F
(i.e. any other non-alphabetic ASCII character)</dt>

<!--
Expand Down Expand Up @@ -8115,7 +8115,7 @@ background: transparent"&gt;blue&lt;/span&gt;.&lt;/p&gt;</pre>
<p>A <dfn id=custom-data-attribute>custom data attribute</dfn> is an attribute in no
namespace whose name starts with the string "<dfn id=attr-data-* title=attr-data-*><code>data-</code></dfn>", has at least one
character after the hyphen, is <a href=#xml-compatible>XML-compatible</a>, and
contains no characters in the range U+0041 .. U+005A (LATIN CAPITAL
contains no characters in the range U+0041 to U+005A (LATIN CAPITAL
LETTER A to LATIN CAPITAL LETTER Z).</p>

<p class=note>All attributes in <a href=#html-documents>HTML documents</a> get
Expand Down Expand Up @@ -20627,7 +20627,7 @@ href="?audio"&gt;audio&lt;/a&gt; test instead.)&lt;/p&gt;</pre>
<p>Any (namespace-less) attribute may be specified on the
<code><a href=#the-embed-element>embed</a></code> element, so long as its name is
<a href=#xml-compatible>XML-compatible</a> and contains no characters in the range
U+0041 .. U+005A (LATIN CAPITAL LETTER A to LATIN CAPITAL LETTER
U+0041 to U+005A (LATIN CAPITAL LETTER A to LATIN CAPITAL LETTER
Z). These attributes are then passed as parameters to the
<a href=#plugin>plugin</a>.</p>

Expand Down Expand Up @@ -39458,8 +39458,8 @@ fur
following subsubsteps:</p>

<ol><!-- * - . _ 0-9 a-z A-Z --><li><p>If the character isn't in the range U+0020, U+002A,
U+002D, U+002E, U+0030 .. U+0039, U+0041 .. U+005A, U+005F,
U+0061 .. U+007A then replace the character with a string
U+002D, U+002E, U+0030 to U+0039, U+0041 to U+005A, U+005F,
U+0061 to U+007A then replace the character with a string
formed as follows: Start with the empty string, and then,
taking each byte of the character when expressed in the
selected character encoding in turn, append to the string a
Expand Down Expand Up @@ -59452,8 +59452,8 @@ interface <dfn id=messageport>MessagePort</dfn> {

<p>Many strings in the HTML syntax (e.g. the names of elements and
their attributes) are case-insensitive, but only for characters in
the ranges U+0041 .. U+005A (LATIN CAPITAL LETTER A to LATIN CAPITAL
LETTER Z) and U+0061 .. U+007A (LATIN SMALL LETTER A to LATIN SMALL
the ranges U+0041 to U+005A (LATIN CAPITAL LETTER A to LATIN CAPITAL
LETTER Z) and U+0061 to U+007A (LATIN SMALL LETTER A to LATIN SMALL
LETTER Z). For convenience, in this section this is just referred to
as "case-insensitive".</p>

Expand Down
38 changes: 19 additions & 19 deletions source
Expand Up @@ -1397,9 +1397,9 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d

<p>Comparing two strings in an <dfn>ASCII case-insensitive</dfn>
manner means comparing them exactly, code point for code point, except
that the characters in the range U+0041 .. U+005A (i.e. LATIN
that the characters in the range U+0041 to U+005A (i.e. LATIN
CAPITAL LETTER A to LATIN CAPITAL LETTER Z) and the corresponding
characters in the range U+0061 .. U+007A (i.e. LATIN SMALL LETTER A
characters in the range U+0061 to U+007A (i.e. LATIN SMALL LETTER A
to LATIN SMALL LETTER Z) are considered to also match.</p>

<p>Comparing two strings in a <dfn>compatibility caseless</dfn>
Expand All @@ -1412,15 +1412,15 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d

<p><dfn title="converted to ASCII uppercase">Converting a string to
ASCII uppercase</dfn> means replacing all characters in the range
U+0061 .. U+007A (i.e. LATIN SMALL LETTER A to LATIN SMALL LETTER Z)
with the corresponding characters in the range U+0041 .. U+005A
U+0061 to U+007A (i.e. LATIN SMALL LETTER A to LATIN SMALL LETTER Z)
with the corresponding characters in the range U+0041 to U+005A
(i.e. LATIN CAPITAL LETTER A to LATIN CAPITAL LETTER Z).</p>

<p><dfn title="converted to ASCII lowercase">Converting a string to
ASCII lowercase</dfn> means replacing all characters in the range
U+0041 .. U+005A (i.e. LATIN CAPITAL LETTER A to LATIN CAPITAL
U+0041 to U+005A (i.e. LATIN CAPITAL LETTER A to LATIN CAPITAL
LETTER Z) with the corresponding characters in the range U+0061
.. U+007A (i.e. LATIN SMALL LETTER A to LATIN SMALL LETTER Z).</p>
to U+007A (i.e. LATIN SMALL LETTER A to LATIN SMALL LETTER Z).</p>

</div>

Expand Down Expand Up @@ -2411,7 +2411,7 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d


<!-- <dt>A U+002E FULL STOP character</dt> -->
<dt>A character in the range U+0001 .. U+001F, <!-- space --> U+0021 .. U+002B, <!-- comma --> U+002D .. U+002F, <!-- digits --> U+003A, <!-- semicolon --> U+003C .. U+0040, <!-- a-z --> U+005B .. U+0060, <!-- A-Z --> U+007b .. U+007F
<dt>A character in the range U+0001 to U+001F, <!-- space --> U+0021 to U+002B, <!-- comma --> U+002D to U+002F, <!-- digits --> U+003A, <!-- semicolon --> U+003C to U+0040, <!-- a-z --> U+005B to U+0060, <!-- A-Z --> U+007b to U+007F
(i.e. any other non-alphabetic ASCII character)</dt>

<!--
Expand Down Expand Up @@ -8228,7 +8228,7 @@ background: transparent">blue&lt;/span>.&lt;/p></pre>
namespace whose name starts with the string "<dfn
title="attr-data-*"><code>data-</code></dfn>", has at least one
character after the hyphen, is <span>XML-compatible</span>, and
contains no characters in the range U+0041 .. U+005A (LATIN CAPITAL
contains no characters in the range U+0041 to U+005A (LATIN CAPITAL
LETTER A to LATIN CAPITAL LETTER Z).</p>

<p class="note">All attributes in <span>HTML documents</span> get
Expand Down Expand Up @@ -22095,7 +22095,7 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>
<p>Any (namespace-less) attribute may be specified on the
<code>embed</code> element, so long as its name is
<span>XML-compatible</span> and contains no characters in the range
U+0041 .. U+005A (LATIN CAPITAL LETTER A to LATIN CAPITAL LETTER
U+0041 to U+005A (LATIN CAPITAL LETTER A to LATIN CAPITAL LETTER
Z). These attributes are then passed as parameters to the
<span>plugin</span>.</p>

Expand Down Expand Up @@ -44226,8 +44226,8 @@ fur
<!-- * - . _ 0-9 a-z A-Z -->

<li><p>If the character isn't in the range U+0020, U+002A,
U+002D, U+002E, U+0030 .. U+0039, U+0041 .. U+005A, U+005F,
U+0061 .. U+007A then replace the character with a string
U+002D, U+002E, U+0030 to U+0039, U+0041 to U+005A, U+005F,
U+0061 to U+007A then replace the character with a string
formed as follows: Start with the empty string, and then,
taking each byte of the character when expressed in the
selected character encoding in turn, append to the string a
Expand Down Expand Up @@ -74348,9 +74348,9 @@ any-char = %x0000-0009 / %x000B-000C / %x000E-10FFFF
\|/
Frame type byte &lt;-------------------------------------.
| | |
| `-- (0x00 .. 0x7F) --> Data... --> 0xFF -->-+
| `-- (0x00 to 0x7F) --> Data... --> 0xFF -->-+
| |
`-- (0x80 .. 0xFF) --> Length --> Data... ------->-'</pre>
`-- (0x80 to 0xFF) --> Length --> Data... ------->-'</pre>


<h6>Design philosophy</h6>
Expand Down Expand Up @@ -74449,9 +74449,9 @@ Frame type byte &lt;-------------------------------------.

<p><dfn title="converted to ASCII lowercase">Converting a string to
ASCII lowercase</dfn> means replacing all characters in the range
U+0041 .. U+005A (i.e. LATIN CAPITAL LETTER A to LATIN CAPITAL
U+0041 to U+005A (i.e. LATIN CAPITAL LETTER A to LATIN CAPITAL
LETTER Z) with the corresponding characters in the range U+0061
.. U+007A (i.e. LATIN SMALL LETTER A to LATIN SMALL LETTER Z).</p>
to U+007A (i.e. LATIN SMALL LETTER A to LATIN SMALL LETTER Z).</p>

<p>The term "URL" is used in this section in a manner consistent
with the terminology used in HTML, namely, to denote a string that
Expand All @@ -74476,7 +74476,7 @@ Frame type byte &lt;-------------------------------------.

<li><p>If <var title="">protocol</var> is specified but is either
the empty string or contains characters that are not in the range
U+0021 .. U+007E, then fail this algorithm.</p></li>
U+0021 to U+007E, then fail this algorithm.</p></li>

<li><p>If the <var title="">url</var> string is not an
<span>absolute URL</span>, then fail this algorithm. <a
Expand Down Expand Up @@ -74950,7 +74950,7 @@ Proxy-authorization: Basic ZWRuYW1vZGU6bm9jYXBlcyE=</pre>
<dd>Move on to the next step.</dd>


<dt>If the byte is in the range 0x41 .. 0x5A (ASCII A .. Z)</dt>
<dt>If the byte is in the range 0x41 to 0x5A (ASCII A-Z)</dt>

<dd>Append a byte whose value is the byte's value plus 0x20 to
the <var title="">name</var> byte array and redo this step for
Expand Down Expand Up @@ -76911,8 +76911,8 @@ interface <dfn>MessagePort</dfn> {

<p>Many strings in the HTML syntax (e.g. the names of elements and
their attributes) are case-insensitive, but only for characters in
the ranges U+0041 .. U+005A (LATIN CAPITAL LETTER A to LATIN CAPITAL
LETTER Z) and U+0061 .. U+007A (LATIN SMALL LETTER A to LATIN SMALL
the ranges U+0041 to U+005A (LATIN CAPITAL LETTER A to LATIN CAPITAL
LETTER Z) and U+0061 to U+007A (LATIN SMALL LETTER A to LATIN SMALL
LETTER Z). For convenience, in this section this is just referred to
as "case-insensitive".</p>

Expand Down

0 comments on commit 937a492

Please sign in to comment.