Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[e] (0) terminology consistency fixes
git-svn-id: http://svn.whatwg.org/webapps@2608 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Dec 29, 2008
1 parent 222c943 commit 8f30047
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 55 deletions.
56 changes: 28 additions & 28 deletions index
Expand Up @@ -224,7 +224,7 @@
<li><a href=#boolean-attributes><span class=secno>2.4.2 </span>Boolean attributes</a></li>
<li><a href=#numbers><span class=secno>2.4.3 </span>Numbers</a>
<ol>
<li><a href=#unsigned-integers><span class=secno>2.4.3.1 </span>Unsigned integers</a></li>
<li><a href=#non-negative-integers><span class=secno>2.4.3.1 </span>Non-negative integers</a></li>
<li><a href=#signed-integers><span class=secno>2.4.3.2 </span>Signed integers</a></li>
<li><a href=#real-numbers><span class=secno>2.4.3.3 </span>Real numbers</a></li>
<li><a href=#ratios><span class=secno>2.4.3.4 </span>Ratios</a></li>
Expand Down Expand Up @@ -2082,7 +2082,7 @@

<h4 id=numbers><span class=secno>2.4.3 </span>Numbers</h4>

<h5 id=unsigned-integers><span class=secno>2.4.3.1 </span>Unsigned integers</h5>
<h5 id=non-negative-integers><span class=secno>2.4.3.1 </span>Non-negative integers</h5>

<p>A string is a <dfn id=valid-non-negative-integer>valid non-negative integer</dfn> if it
consists of one of more characters in the range U+0030 DIGIT ZERO
Expand Down Expand Up @@ -2142,7 +2142,8 @@
character.</p>

<p>The <dfn id=rules-for-parsing-integers>rules for parsing integers</dfn> are similar to the
rules for non-negative integers, and are as given in the following
<a href=#rules-for-parsing-non-negative-integers title="rules for parsing non-negative integers">rules for
non-negative integers</a>, and are as given in the following
algorithm. When invoked, the steps must be followed in the order
given, aborting at the first step that returns a value. This
algorithm will either return an integer or an error. Leading spaces
Expand Down Expand Up @@ -2477,10 +2478,9 @@

</ol><h5 id=percentages-and-dimensions><span class=secno>2.4.3.5 </span>Percentages and dimensions</h5>

<p class=XXX><dfn id=valid-positive-non-zero-integers>valid positive non-zero integers</dfn>
<dfn id=rules-for-parsing-dimension-values>rules for parsing dimension values</dfn> (only used by
height/width on img, embed, object &mdash; lengths in css pixels or
percentages)</p>
<p class=XXX><dfn id=rules-for-parsing-dimension-values>rules for parsing dimension values</dfn> (only
used by height/width on img, embed, object &mdash; lengths in css
pixels or percentages)</p>



Expand Down Expand Up @@ -5163,31 +5163,30 @@

<p>If a reflecting DOM attribute is an <em>unsigned</em> integer
type (<code>unsigned long</code>) then, on getting, the content
attribute must be parsed according to <a href=#rules-for-parsing-non-negative-integers title="rules for parsing
non-negative integers">the rules for parsing unsigned
integers</a>, and if that is successful, the resulting value must
be returned. If, on the other hand, it fails, or if the attribute is
absent, the default value must be returned instead, or 0 if there is
no default value. On setting, the given value must be converted to
the shortest possible string representing the number as a
<a href=#valid-non-negative-integer>valid non-negative integer</a> in base ten and then that
string must be used as the new content attribute value.</p>
attribute must be parsed according to <a href=#rules-for-parsing-non-negative-integers>rules for parsing
non-negative integers</a>, and if that is successful, the
resulting value must be returned. If, on the other hand, it fails,
or if the attribute is absent, the default value must be returned
instead, or 0 if there is no default value. On setting, the given
value must be converted to the shortest possible string representing
the number as a <a href=#valid-non-negative-integer>valid non-negative integer</a> in base ten
and then that string must be used as the new content attribute
value.</p>

<p>If a reflecting DOM attribute is an unsigned integer type
(<code>unsigned long</code>) that is <dfn id=limited-to-only-positive-non-zero-numbers>limited to only positive
non-zero numbers</dfn>, then the behavior is similar to the previous
case, but zero is not allowed. On getting, the content attribute
must first be parsed according to <a href=#rules-for-parsing-non-negative-integers title="rules for parsing
non-negative integers">the rules for parsing unsigned
integers</a>, and if that is successful, the resulting value must
be returned. If, on the other hand, it fails, or if the attribute is
absent, the default value must be returned instead, or 1 if there is
no default value. On setting, if the value is zero, the user agent
must fire an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception. Otherwise, the
given value must be converted to the shortest possible string
representing the number as a <a href=#valid-non-negative-integer>valid non-negative integer</a>
in base ten and then that string must be used as the new content
attribute value.</p>
must first be parsed according to <a href=#rules-for-parsing-non-negative-integers>rules for parsing
non-negative integers</a>, and if that is successful, the
resulting value must be returned. If, on the other hand, it fails,
or if the attribute is absent, the default value must be returned
instead, or 1 if there is no default value. On setting, if the value
is zero, the user agent must fire an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
exception. Otherwise, the given value must be converted to the
shortest possible string representing the number as a <a href=#valid-non-negative-integer>valid
non-negative integer</a> in base ten and then that string must be
used as the new content attribute value.</p>

<p>If a reflecting DOM attribute is a floating point number type
(<code>float</code>) and it doesn't fall into one of the earlier
Expand Down Expand Up @@ -21792,7 +21791,8 @@ function AddCloud(data, x, y) { ... }</pre>
of the visual content of the element (the width and height
respectively, relative to the nominal direction of the output
medium), in CSS pixels. The attributes, if specified, must have
values that are <a href=#valid-positive-non-zero-integers>valid positive non-zero integers</a>.</p>
values that are <a href=#valid-non-negative-integer title="valid non-negative integer">valid
non-negative integers</a> greater than zero.</p>

<p>The specified dimensions given may differ from the dimensions
specified in the resource itself, since the resource may have a
Expand Down
54 changes: 27 additions & 27 deletions source
Expand Up @@ -1157,7 +1157,7 @@

<h4>Numbers</h4>

<h5>Unsigned integers</h5>
<h5>Non-negative integers</h5>

<p>A string is a <dfn>valid non-negative integer</dfn> if it
consists of one of more characters in the range U+0030 DIGIT ZERO
Expand Down Expand Up @@ -1230,7 +1230,8 @@
character.</p>

<p>The <dfn>rules for parsing integers</dfn> are similar to the
rules for non-negative integers, and are as given in the following
<span title="rules for parsing non-negative integers">rules for
non-negative integers</span>, and are as given in the following
algorithm. When invoked, the steps must be followed in the order
given, aborting at the first step that returns a value. This
algorithm will either return an integer or an error. Leading spaces
Expand Down Expand Up @@ -1665,10 +1666,9 @@

<h5 id="percentages-and-dimensions">Percentages and dimensions</h5>

<p class="XXX"><dfn>valid positive non-zero integers</dfn>
<dfn>rules for parsing dimension values</dfn> (only used by
height/width on img, embed, object &mdash; lengths in css pixels or
percentages)</p>
<p class="XXX"><dfn>rules for parsing dimension values</dfn> (only
used by height/width on img, embed, object &mdash; lengths in css
pixels or percentages)</p>



Expand Down Expand Up @@ -5000,31 +5000,30 @@

<p>If a reflecting DOM attribute is an <em>unsigned</em> integer
type (<code>unsigned long</code>) then, on getting, the content
attribute must be parsed according to <span title="rules for parsing
non-negative integers">the rules for parsing unsigned
integers</span>, and if that is successful, the resulting value must
be returned. If, on the other hand, it fails, or if the attribute is
absent, the default value must be returned instead, or 0 if there is
no default value. On setting, the given value must be converted to
the shortest possible string representing the number as a
<span>valid non-negative integer</span> in base ten and then that
string must be used as the new content attribute value.</p>
attribute must be parsed according to <span>rules for parsing
non-negative integers</span>, and if that is successful, the
resulting value must be returned. If, on the other hand, it fails,
or if the attribute is absent, the default value must be returned
instead, or 0 if there is no default value. On setting, the given
value must be converted to the shortest possible string representing
the number as a <span>valid non-negative integer</span> in base ten
and then that string must be used as the new content attribute
value.</p>

<p>If a reflecting DOM attribute is an unsigned integer type
(<code>unsigned long</code>) that is <dfn>limited to only positive
non-zero numbers</dfn>, then the behavior is similar to the previous
case, but zero is not allowed. On getting, the content attribute
must first be parsed according to <span title="rules for parsing
non-negative integers">the rules for parsing unsigned
integers</span>, and if that is successful, the resulting value must
be returned. If, on the other hand, it fails, or if the attribute is
absent, the default value must be returned instead, or 1 if there is
no default value. On setting, if the value is zero, the user agent
must fire an <code>INDEX_SIZE_ERR</code> exception. Otherwise, the
given value must be converted to the shortest possible string
representing the number as a <span>valid non-negative integer</span>
in base ten and then that string must be used as the new content
attribute value.</p>
must first be parsed according to <span>rules for parsing
non-negative integers</span>, and if that is successful, the
resulting value must be returned. If, on the other hand, it fails,
or if the attribute is absent, the default value must be returned
instead, or 1 if there is no default value. On setting, if the value
is zero, the user agent must fire an <code>INDEX_SIZE_ERR</code>
exception. Otherwise, the given value must be converted to the
shortest possible string representing the number as a <span>valid
non-negative integer</span> in base ten and then that string must be
used as the new content attribute value.</p>

<p>If a reflecting DOM attribute is a floating point number type
(<code>float</code>) and it doesn't fall into one of the earlier
Expand Down Expand Up @@ -24047,7 +24046,8 @@ function AddCloud(data, x, y) { ... }</pre>
of the visual content of the element (the width and height
respectively, relative to the nominal direction of the output
medium), in CSS pixels. The attributes, if specified, must have
values that are <span>valid positive non-zero integers</span>.</p>
values that are <span title="valid non-negative integer">valid
non-negative integers</span> greater than zero.</p>

<p>The specified dimensions given may differ from the dimensions
specified in the resource itself, since the resource may have a
Expand Down

0 comments on commit 8f30047

Please sign in to comment.