Skip to content

Commit

Permalink
[e] (0) Only one kind of float now.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@3695 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 29, 2009
1 parent 06a9756 commit f711135
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
9 changes: 4 additions & 5 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -5281,11 +5281,10 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
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
categories, then, on getting, the content attribute must be parsed
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, and the value is in the
range of the DOM attribute's type, the resulting value must be
(<code>float</code>), then, on getting, the content attribute must
be parsed 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, and the value is in
the range of the DOM attribute's type, the resulting value must be
returned. If, on the other hand, it fails or returns an out of range
value, or if the attribute is absent, the default value must be
returned instead, or 0.0 if there is no default value. On setting,
Expand Down
9 changes: 4 additions & 5 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -5006,11 +5006,10 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
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
categories, then, on getting, the content attribute must be parsed
according to the <span>rules for parsing floating point number
values</span>, and if that is successful, and the value is in the
range of the DOM attribute's type, the resulting value must be
(<code>float</code>), then, on getting, the content attribute must
be parsed according to the <span>rules for parsing floating point
number values</span>, and if that is successful, and the value is in
the range of the DOM attribute's type, the resulting value must be
returned. If, on the other hand, it fails or returns an out of range
value, or if the attribute is absent, the default value must be
returned instead, or 0.0 if there is no default value. On setting,
Expand Down

0 comments on commit f711135

Please sign in to comment.