- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 23 Oct 2009 06:47:38 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv9264 Modified Files: Overview.html Log Message: Make the 'best representation of a floating point number' stuff actually make a modicum of sense. (whatwg r4299) Index: Overview.html =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.3434 retrieving revision 1.3435 diff -u -d -r1.3434 -r1.3435 --- Overview.html 23 Oct 2009 06:40:18 -0000 1.3434 +++ Overview.html 23 Oct 2009 06:47:33 -0000 1.3435 @@ -2470,9 +2470,9 @@ <a href="#valid-floating-point-number" title="valid floating point number">valid floating point numbers</a>.<div class="impl"> - <p>The <dfn id="best-representation-of-the-floating-point-number">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 id="best-representation-of-the-number-as-a-floating-point-number" 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 id="rules-for-parsing-floating-point-number-values">rules for parsing floating point number values</dfn> are as given in the following algorithm. This algorithm must be aborted @@ -4899,9 +4899,9 @@ 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-floating-point-number">best representation - of the floating point number</a> and then that string must be - used as the new content attribute value.</p> + 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 @@ -30523,9 +30523,10 @@ number values</a> to it. User agents must not allow the user to set the <a href="#concept-fe-value" title="concept-fe-value">value</a> to a string that is not a <a href="#valid-floating-point-number">valid floating point number</a>. If the user agent - provides a user interface for selecting a number, then the <a href="#concept-fe-value" title="concept-fe-value">value</a> must be set to the <a href="#best-representation-of-the-floating-point-number">best - representation of the floating point number</a> representing the - user's selection. User agents should allow the user to set the <a href="#concept-fe-value" title="concept-fe-value">value</a> to the empty string.</p> + provides a user interface for selecting a number, then the <a href="#concept-fe-value" title="concept-fe-value">value</a> must be set to the <a href="#best-representation-of-the-number-as-a-floating-point-number" 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</a>. User agents should + allow the user to set the <a href="#concept-fe-value" title="concept-fe-value">value</a> to the empty string.</p> </div><p>The <code title="attr-input-value"><a href="#attr-input-value">value</a></code> attribute, if specified, must have a value that is a <a href="#valid-floating-point-number">valid floating point @@ -30636,10 +30637,10 @@ number values</a> to it. User agents must not allow the user to set the <a href="#concept-fe-value" title="concept-fe-value">value</a> to a string that is not a <a href="#valid-floating-point-number">valid floating point number</a>. If the user agent - provides a user interface for selecting a number, then the <a href="#concept-fe-value" title="concept-fe-value">value</a> must be set to a <a href="#best-representation-of-the-floating-point-number">best - representation of the floating point number</a> representing the - user's selection. User agents must not allow the user to set the - <a href="#concept-fe-value" title="concept-fe-value">value</a> to the empty string.</p> + provides a user interface for selecting a number, then the <a href="#concept-fe-value" title="concept-fe-value">value</a> must be set to a <a href="#best-representation-of-the-number-as-a-floating-point-number" 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</a>. User agents must not + allow the user to set the <a href="#concept-fe-value" title="concept-fe-value">value</a> to the empty string.</p> </div><p>The <code title="attr-input-value"><a href="#attr-input-value">value</a></code> attribute, if specified, must have a value that is a <a href="#valid-floating-point-number">valid floating point
Received on Friday, 23 October 2009 06:47:42 UTC