Short URL: http://html5.org/r/4299
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 4299 | 8010 | Make the 'best representation of a floating point number' stuff actually make a modicum of sense. | 2009-10-23 07:00 |
Index: source =================================================================== --- source (revision 4298) +++ source (revision 4299) @@ -1866,9 +1866,11 @@ <div class="impl"> - <p>The <dfn>best representation of the floating point number</dfn> - <var title="">n</var> is the string obtained from applying the - JavaScript operator ToString to <var title="">n</var>.</p> + <p>The <dfn title="best representation of the number as a floating + 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> <p>The <dfn>rules for parsing floating point number values</dfn> are as given in the following algorithm. This algorithm must be aborted @@ -5105,8 +5107,8 @@ 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 <span>best representation - of the floating point number</span> and then that string must be - used as the new content attribute value.</p> + of the number as a floating point number</span> 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 @@ -38038,9 +38040,11 @@ set the <span title="concept-fe-value">value</span> to a string that is not a <span>valid floating point number</span>. If the user agent provides a user interface for selecting a number, then the <span - title="concept-fe-value">value</span> must be set to the <span>best - representation of the floating point number</span> representing the - user's selection. User agents should allow the user to set the <span + title="concept-fe-value">value</span> must be set to the <span + title="best representation of the number as a floating point + number">best representation of the number representing the user's + selection as a floating point number</span>. User agents should + allow the user to set the <span title="concept-fe-value">value</span> to the empty string.</p> </div> @@ -38184,10 +38188,12 @@ set the <span title="concept-fe-value">value</span> to a string that is not a <span>valid floating point number</span>. If the user agent provides a user interface for selecting a number, then the <span - title="concept-fe-value">value</span> must be set to a <span>best - representation of the floating point number</span> representing the - user's selection. User agents must not allow the user to set the - <span title="concept-fe-value">value</span> to the empty string.</p> + title="concept-fe-value">value</span> must be set to a <span + title="best representation of the number as a floating point + number">best representation of the number representing the user's + selection as a floating point number</span>. User agents must not + allow the user to set the <span + title="concept-fe-value">value</span> to the empty string.</p> </div>