html5/spec Overview.html,1.3466,1.3467

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv11818

Modified Files:
	Overview.html 
Log Message:
Try to be more explicit about what happens with parsing strings into floats for out-of-range or over-precise values. (whatwg r4331)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.3466
retrieving revision 1.3467
diff -u -d -r1.3466 -r1.3467
--- Overview.html	25 Oct 2009 08:23:59 -0000	1.3466
+++ Overview.html	25 Oct 2009 09:04:36 -0000	1.3467
@@ -4879,13 +4879,14 @@
   (<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 IDL 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,
-  the given value must be converted to the <a href="#best-representation-of-the-number-as-a-floating-point-number">best representation
-  of the number as a floating point number</a> and then that string
-  must be used as the new content attribute value.</p>
+  the range of the IDL attribute's type (excluding infinities), the
+  resulting value must be returned, truncating it if necessary. 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, the given value must
+  be converted to the <a href="#best-representation-of-the-number-as-a-floating-point-number">best representation of the number as a
+  floating point number</a> and then that string must be used as
+  the new content attribute value.</p>
 
   <p class="note">The values Infinity and Not-a-Number (NaN) values
   throw an exception on setting, as <a href="#float-nan">defined

Received on Sunday, 25 October 2009 09:04:41 UTC