[html5] r5914 - [giow] (1) Define progress.value to default to 0, not -1. Fixing http://www.w3.o [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Feb 24 23:56:38 PST 2011


Author: ianh
Date: 2011-02-24 23:56:36 -0800 (Thu, 24 Feb 2011)
New Revision: 5914

Modified:
   complete.html
   index
   source
Log:
[giow] (1) Define progress.value to default to 0, not -1.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=11938

Modified: complete.html
===================================================================
--- complete.html	2011-02-25 07:52:59 UTC (rev 5913)
+++ complete.html	2011-02-25 07:56:36 UTC (rev 5914)
@@ -47053,15 +47053,20 @@
   attribute must return −1. Otherwise, it must return the
   result of dividing the <a href=#concept-progress-value title=concept-progress-value>current value</a> by the <a href=#concept-progress-maximum title=concept-progress-maximum>maximum value</a>.</p>
 
-  <p>Similarly, if the progress bar is an indeterminate progress bar,
-  then the <dfn id=dom-progress-value title=dom-progress-value><code>value</code></dfn>
-  IDL attribute, on getting, must return −1. Otherwise, it must
-  return the <a href=#concept-progress-value title=concept-progress-value>current
-  value</a>. 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 the <code title=dom-progress-value><a href=#dom-progress-value>value</a></code> content attribute must be
-  set to that string.</p>
+  <p>If the progress bar is an indeterminate progress bar, then the
+  <dfn id=dom-progress-value title=dom-progress-value><code>value</code></dfn> IDL
+  attribute, on getting, must return 0. Otherwise, it must return the
+  <a href=#concept-progress-value title=concept-progress-value>current value</a>. 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 the <code title=dom-progress-value><a href=#dom-progress-value>value</a></code> content
+  attribute must be set to that string.</p>
 
+  <p class=note>Setting the <code title=dom-progress-value><a href=#dom-progress-value>value</a></code> IDL attribute to itself when
+  the corresponding content attribute is absent would change the
+  progress bar from an indeterminate progress bar to a determinate
+  progress bar with no progress.</p>
+
   <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>

Modified: index
===================================================================
--- index	2011-02-25 07:52:59 UTC (rev 5913)
+++ index	2011-02-25 07:56:36 UTC (rev 5914)
@@ -47036,15 +47036,20 @@
   attribute must return −1. Otherwise, it must return the
   result of dividing the <a href=#concept-progress-value title=concept-progress-value>current value</a> by the <a href=#concept-progress-maximum title=concept-progress-maximum>maximum value</a>.</p>
 
-  <p>Similarly, if the progress bar is an indeterminate progress bar,
-  then the <dfn id=dom-progress-value title=dom-progress-value><code>value</code></dfn>
-  IDL attribute, on getting, must return −1. Otherwise, it must
-  return the <a href=#concept-progress-value title=concept-progress-value>current
-  value</a>. 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 the <code title=dom-progress-value><a href=#dom-progress-value>value</a></code> content attribute must be
-  set to that string.</p>
+  <p>If the progress bar is an indeterminate progress bar, then the
+  <dfn id=dom-progress-value title=dom-progress-value><code>value</code></dfn> IDL
+  attribute, on getting, must return 0. Otherwise, it must return the
+  <a href=#concept-progress-value title=concept-progress-value>current value</a>. 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 the <code title=dom-progress-value><a href=#dom-progress-value>value</a></code> content
+  attribute must be set to that string.</p>
 
+  <p class=note>Setting the <code title=dom-progress-value><a href=#dom-progress-value>value</a></code> IDL attribute to itself when
+  the corresponding content attribute is absent would change the
+  progress bar from an indeterminate progress bar to a determinate
+  progress bar with no progress.</p>
+
   <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>

Modified: source
===================================================================
--- source	2011-02-25 07:52:59 UTC (rev 5913)
+++ source	2011-02-25 07:56:36 UTC (rev 5914)
@@ -52761,16 +52761,21 @@
   title="concept-progress-value">current value</span> by the <span
   title="concept-progress-maximum">maximum value</span>.</p>
 
-  <p>Similarly, if the progress bar is an indeterminate progress bar,
-  then the <dfn title="dom-progress-value"><code>value</code></dfn>
-  IDL attribute, on getting, must return &#x2212;1. Otherwise, it must
-  return the <span title="concept-progress-value">current
-  value</span>. On setting, the given value must be converted to the
-  <span>best representation of the number as a floating point
-  number</span> and then the <code
-  title="dom-progress-value">value</code> content attribute must be
-  set to that string.</p>
+  <p>If the progress bar is an indeterminate progress bar, then the
+  <dfn title="dom-progress-value"><code>value</code></dfn> IDL
+  attribute, on getting, must return 0. Otherwise, it must return the
+  <span title="concept-progress-value">current value</span>. On
+  setting, the given value must be converted to the <span>best
+  representation of the number as a floating point number</span> and
+  then the <code title="dom-progress-value">value</code> content
+  attribute must be set to that string.</p>
 
+  <p class="note">Setting the <code
+  title="dom-progress-value">value</code> IDL attribute to itself when
+  the corresponding content attribute is absent would change the
+  progress bar from an indeterminate progress bar to a determinate
+  progress bar with no progress.</p>
+
   <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




More information about the Commit-Watchers mailing list