Skip to content

Commit adc9553

Browse files
committed
Pull the term 'maximum allowed codepoint' into a definition so I don't repeat myself.
1 parent 834d641 commit adc9553

2 files changed

Lines changed: 29 additions & 15 deletions

File tree

css3-syntax/Overview.html

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,11 @@ <h4 id=definitions><span class=secno>3.4.2. </span> Definitions</h4>
565565

566566
<dd>A <a href="#newline"><i>newline</i></a>, U+0009 CHARACTER TABULATION,
567567
or U+0020 SPACE.
568+
569+
<dt><dfn id=maximum-allowed-codepoint>maximum allowed codepoint</dfn>
570+
571+
<dd>The greatest codepoint defined by Unicode. This is currently U+10FFFF.
572+
568573
</dl>
569574

570575
<h4 id=data-state><span class=secno>3.4.3. </span> <dfn id=data-state0>Data
@@ -1765,9 +1770,10 @@ <h4 id=consume-an-escaped-character><span class=secno>3.4.25. </span> <dfn
17651770
href="#next-input-character"><i>next input character</i></a> is <a
17661771
href="#whitespace"><i>whitespace</i></a>, consume it as well. Interpret
17671772
the <a href="#hex-digit"><i>hex digits</i></a> as a hexadecimal number.
1768-
If this number is greater than the current maximum allowed codepoint in
1769-
Unicode (currently U+10FFFF), return U+FFFD REPLACEMENT CHARACTER.
1770-
Otherwise, return the character with that codepoint.
1773+
If this number is greater than the <a
1774+
href="#maximum-allowed-codepoint"><i>maximum allowed codepoint</i></a>,
1775+
return U+FFFD REPLACEMENT CHARACTER. Otherwise, return the character with
1776+
that codepoint.
17711777

17721778
<dt>anything else
17731779

@@ -1788,8 +1794,8 @@ <h4 id=set-the-unicode-range-tokens-range><span class=secno>3.4.26. </span>
17881794
might be defined, and both are non-negative integers.
17891795

17901796
<p> If the <a href="#start-of-the-range"><i>start of the range</i></a> is
1791-
greater than the current maximum allowed codepoint in Unicode (currently
1792-
U+10FFFF), the unicode-range token's range is empty.
1797+
greater than the <a href="#maximum-allowed-codepoint"><i>maximum allowed
1798+
codepoint</i></a>, the unicode-range token's range is empty.
17931799

17941800
<p> If the <a href="#end-of-the-range"><i>end of the range</i></a> is
17951801
defined, and it is less than the <a href="#start-of-the-range"><i>start of
@@ -1801,12 +1807,14 @@ <h4 id=set-the-unicode-range-tokens-range><span class=secno>3.4.26. </span>
18011807
range</i></a>.
18021808

18031809
<p> Otherwise, if the <a href="#end-of-the-range"><i>end of the
1804-
range</i></a> is greater than the current maximum allowed codepoint in
1805-
Unicode, change it to the current maximum allowed codepoint. The
1806-
unicode-range token's range is all characters between the character whose
1807-
codepoint is the <a href="#start-of-the-range"><i>start of the
1808-
range</i></a> and the character whose codepoint is the <a
1809-
href="#end-of-the-range"><i>end of the range</i></a>. <!--
1810+
range</i></a> is greater than the <a
1811+
href="#maximum-allowed-codepoint"><i>maximum allowed codepoint</i></a>,
1812+
change it to the <a href="#maximum-allowed-codepoint"><i>maximum allowed
1813+
codepoint</i></a>. The unicode-range token's range is all characters
1814+
between the character whose codepoint is the <a
1815+
href="#start-of-the-range"><i>start of the range</i></a> and the character
1816+
whose codepoint is the <a href="#end-of-the-range"><i>end of the
1817+
range</i></a>. <!--
18101818
PPPPPPPPPPPPPPPPP AAA RRRRRRRRRRRRRRRRR SSSSSSSSSSSSSSS EEEEEEEEEEEEEEEEEEEEEERRRRRRRRRRRRRRRRR
18111819
P::::::::::::::::P A:::A R::::::::::::::::R SS:::::::::::::::SE::::::::::::::::::::ER::::::::::::::::R
18121820
P::::::PPPPPP:::::P A:::::A R::::::RRRRRR:::::R S:::::SSSSSS::::::SE::::::::::::::::::::ER::::::RRRRRR:::::R
@@ -2192,6 +2200,9 @@ <h2 class=no-num id=index> Index</h2>
21922200
<li>lowercase letter, <a href="#lowercase-letter"
21932201
title="lowercase letter"><strong>3.4.2.</strong></a>
21942202

2203+
<li>maximum allowed codepoint, <a href="#maximum-allowed-codepoint"
2204+
title="maximum allowed codepoint"><strong>3.4.2.</strong></a>
2205+
21952206
<li>name character, <a href="#name-character"
21962207
title="name character"><strong>3.4.2.</strong></a>
21972208

css3-syntax/Overview.src.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,9 @@ <h4>
362362
<dt><dfn>whitespace</dfn>
363363
<dd>A <i>newline</i>, U+0009 CHARACTER TABULATION, or U+0020 SPACE.
364364

365+
<dt><dfn>maximum allowed codepoint</dfn>
366+
<dd>The greatest codepoint defined by Unicode. This is currently U+10FFFF.
367+
365368
</dl>
366369

367370
<h4>
@@ -1785,7 +1788,7 @@ <h4>
17851788
consume it as well.
17861789
Interpret the <i>hex digits</i> as a hexadecimal number.
17871790
If this number is greater than
1788-
the current maximum allowed codepoint in Unicode (currently U+10FFFF),
1791+
the <i>maximum allowed codepoint</i>,
17891792
return U+FFFD REPLACEMENT CHARACTER.
17901793
Otherwise, return the character with that codepoint.
17911794

@@ -1809,7 +1812,7 @@ <h4>
18091812

18101813
<p>
18111814
If the <i>start of the range</i> is greater than
1812-
the current maximum allowed codepoint in Unicode (currently U+10FFFF),
1815+
the <i>maximum allowed codepoint</i>,
18131816
the unicode-range token's range is empty.
18141817

18151818
<p>
@@ -1825,8 +1828,8 @@ <h4>
18251828
<p>
18261829
Otherwise,
18271830
if the <i>end of the range</i> is greater than
1828-
the current maximum allowed codepoint in Unicode,
1829-
change it to the current maximum allowed codepoint.
1831+
the <i>maximum allowed codepoint</i>,
1832+
change it to the <i>maximum allowed codepoint</i>.
18301833
The unicode-range token's range
18311834
is all characters between
18321835
the character whose codepoint is the <i>start of the range</i>

0 commit comments

Comments
 (0)