[html5] r6490 - [giow] (1) track implementations Fixing http://www.w3.org/Bugs/Public/show_bug.c [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Aug 17 13:17:10 PDT 2011


Author: ianh
Date: 2011-08-17 13:17:08 -0700 (Wed, 17 Aug 2011)
New Revision: 6490

Modified:
   complete.html
   index
   source
Log:
[giow] (1) track implementations
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=11939

Modified: complete.html
===================================================================
--- complete.html	2011-08-17 19:48:20 UTC (rev 6489)
+++ complete.html	2011-08-17 20:17:08 UTC (rev 6490)
@@ -8092,7 +8092,7 @@
   representing the number as a <a href=#valid-non-negative-integer>valid non-negative integer</a>
   and then that string must be used as the new content attribute
   value.</p> <!-- see previous paragraph for note about the range -->
-
+ 
   <p>If a reflecting IDL attribute has a floating point number type
   (<code>double</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
@@ -8104,6 +8104,22 @@
   floating point number</a> and then that string must be used as
   the new content attribute value.</p>
 
+  <p>If a reflecting IDL attribute has a floating point number type
+  (<code>double</code>) that is <dfn id=limited-to-numbers-greater-than-zero>limited to numbers greater than
+  zero</dfn>, then the behavior is similar to the previous case, but
+  zero and negative values are not allowed. 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 greater than 0.0, 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, if the
+  value is less than or equal to zero, then the value must be ignored.
+  Otherwise, 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
   earlier</a>.</p>
@@ -50571,7 +50587,9 @@
 
   <p>The <dfn id=dom-progress-max title=dom-progress-max><code>max</code></dfn> IDL
   attribute must <a href=#reflect>reflect</a> the content attribute of the
-  same name. The default value for <code title=dom-progress-max><a href=#dom-progress-max>max</a></code> is 1.0.</p>
+  same name, <a href=#limited-to-numbers-greater-than-zero>limited to numbers greater than zero</a>. The
+  default value for <code title=dom-progress-max><a href=#dom-progress-max>max</a></code> is
+  1.0.</p>
 
   <p>The <code title=dom-lfe-labels><a href=#dom-lfe-labels>labels</a></code> attribute provides
   a list of the element's <code><a href=#the-label-element>label</a></code>s.</p>

Modified: index
===================================================================
--- index	2011-08-17 19:48:20 UTC (rev 6489)
+++ index	2011-08-17 20:17:08 UTC (rev 6490)
@@ -7956,7 +7956,7 @@
   representing the number as a <a href=#valid-non-negative-integer>valid non-negative integer</a>
   and then that string must be used as the new content attribute
   value.</p> <!-- see previous paragraph for note about the range -->
-
+ 
   <p>If a reflecting IDL attribute has a floating point number type
   (<code>double</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
@@ -7968,6 +7968,22 @@
   floating point number</a> and then that string must be used as
   the new content attribute value.</p>
 
+  <p>If a reflecting IDL attribute has a floating point number type
+  (<code>double</code>) that is <dfn id=limited-to-numbers-greater-than-zero>limited to numbers greater than
+  zero</dfn>, then the behavior is similar to the previous case, but
+  zero and negative values are not allowed. 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 greater than 0.0, 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, if the
+  value is less than or equal to zero, then the value must be ignored.
+  Otherwise, 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
   earlier</a>.</p>
@@ -50438,7 +50454,9 @@
 
   <p>The <dfn id=dom-progress-max title=dom-progress-max><code>max</code></dfn> IDL
   attribute must <a href=#reflect>reflect</a> the content attribute of the
-  same name. The default value for <code title=dom-progress-max><a href=#dom-progress-max>max</a></code> is 1.0.</p>
+  same name, <a href=#limited-to-numbers-greater-than-zero>limited to numbers greater than zero</a>. The
+  default value for <code title=dom-progress-max><a href=#dom-progress-max>max</a></code> is
+  1.0.</p>
 
   <p>The <code title=dom-lfe-labels><a href=#dom-lfe-labels>labels</a></code> attribute provides
   a list of the element's <code><a href=#the-label-element>label</a></code>s.</p>

Modified: source
===================================================================
--- source	2011-08-17 19:48:20 UTC (rev 6489)
+++ source	2011-08-17 20:17:08 UTC (rev 6490)
@@ -7905,7 +7905,7 @@
   representing the number as a <span>valid non-negative integer</span>
   and then that string must be used as the new content attribute
   value.</p> <!-- see previous paragraph for note about the range -->
-
+ 
   <p>If a reflecting IDL attribute has a floating point number type
   (<code>double</code>), then, on getting, the content attribute must
   be parsed according to the <span>rules for parsing floating point
@@ -7917,6 +7917,22 @@
   floating point number</span> and then that string must be used as
   the new content attribute value.</p>
 
+  <p>If a reflecting IDL attribute has a floating point number type
+  (<code>double</code>) that is <dfn>limited to numbers greater than
+  zero</dfn>, then the behavior is similar to the previous case, but
+  zero and negative values are not allowed. 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 greater than 0.0, 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, if the
+  value is less than or equal to zero, then the value must be ignored.
+  Otherwise, the given value must be converted to the <span>best
+  representation 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
   earlier</a>.</p>
@@ -56737,8 +56753,9 @@
 
   <p>The <dfn title="dom-progress-max"><code>max</code></dfn> IDL
   attribute must <span>reflect</span> the content attribute of the
-  same name. The default value for <code
-  title="dom-progress-max">max</code> is 1.0.</p>
+  same name, <span>limited to numbers greater than zero</span>. The
+  default value for <code title="dom-progress-max">max</code> is
+  1.0.</p>
 
   <p>The <code title="dom-lfe-labels">labels</code> attribute provides
   a list of the element's <code>label</code>s.</p>




More information about the Commit-Watchers mailing list