Skip to content

Commit

Permalink
[e] (0) grammar
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@2663 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 14, 2009
1 parent 2c199d2 commit e7dd0d2
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 40 deletions.
39 changes: 19 additions & 20 deletions index
Expand Up @@ -5188,19 +5188,19 @@

<p>If a reflecting DOM attribute is a signed integer type
(<code>long</code>) then, on getting, the content attribute must be
parsed according to <a href=#rules-for-parsing-integers title="rules for parsing integers">the
rules for parsing signed 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, then 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-integer>valid integer</a> in base ten
and then that string must be used as the new content attribute
value.</p>
parsed according to the <a href=#rules-for-parsing-integers title="rules for parsing
integers">rules for parsing signed 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, then 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-integer>valid
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 <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>rules for parsing
attribute must be parsed according to the <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
Expand All @@ -5214,7 +5214,7 @@
(<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>rules for parsing
must first be parsed according to the <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
Expand All @@ -5228,15 +5228,14 @@
<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
categories, then, on getting, the content attribute must be parsed
according to <a href=#rules-for-parsing-floating-point-number-values title="rules for parsing floating point number
values">the rules for parsing floating point number values</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.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-floating-point-number>valid
floating point number</a> in base ten and then that string must
be used as the new content attribute value.</p>
according to the <a href=#rules-for-parsing-floating-point-number-values>rules for parsing floating point number
values</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.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-floating-point-number>valid floating point number</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 of the type
<code><a href=#domtokenlist-0>DOMTokenList</a></code>, then on getting it must return a
Expand Down
39 changes: 19 additions & 20 deletions source
Expand Up @@ -5012,19 +5012,19 @@

<p>If a reflecting DOM attribute is a signed integer type
(<code>long</code>) then, on getting, the content attribute must be
parsed according to <span title="rules for parsing integers">the
rules for parsing signed 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, then 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 integer</span> in base ten
and then that string must be used as the new content attribute
value.</p>
parsed according to the <span title="rules for parsing
integers">rules for parsing signed 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, then 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
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 <em>unsigned</em> integer
type (<code>unsigned long</code>) then, on getting, the content
attribute must be parsed according to <span>rules for parsing
attribute must be parsed according to the <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
Expand All @@ -5038,7 +5038,7 @@
(<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>rules for parsing
must first be parsed according to the <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
Expand All @@ -5052,15 +5052,14 @@
<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
categories, then, on getting, the content attribute must be parsed
according to <span title="rules for parsing floating point number
values">the rules for parsing floating point number values</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.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
floating point number</span> in base ten and then that string must
be used as the new content attribute value.</p>
according to the <span>rules for parsing floating point number
values</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.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 floating point number</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 of the type
<code>DOMTokenList</code>, then on getting it must return a
Expand Down

0 comments on commit e7dd0d2

Please sign in to comment.