HTML5 Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/4300

SVNBugCommentTime (UTC)
43008011[Gecko] [Internet Explorer] [Opera] [Webkit] Handle the way ToString is not fully defined on Number in JS.2009-10-23 07:15
Index: source
===================================================================
--- source	(revision 4299)
+++ source	(revision 4300)
@@ -1870,7 +1870,12 @@
   point number">best representation of the number <var
   title="">n</var> as a floating point number</dfn> is the string
   obtained from applying the JavaScript operator ToString to <var
-  title="">n</var>.</p>
+  title="">n</var>. The JavaScript operator ToString is not uniquely
+  determined. When there are multiple possible strings that could be
+  obtained from the JavaScript operator ToString for a particular
+  value, the user agent must always return the same string for that
+  value (though it may differ from the value used by other user
+  agents).</p>
 
   <p>The <dfn>rules for parsing floating point number values</dfn> are
   as given in the following algorithm. This algorithm must be aborted

|