hixie: Define progress.value to default to 0, not -1. (whatwg r5914)

hixie: Define progress.value to default to 0, not -1. (whatwg r5914)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4753&r2=1.4754&f=h
http://html5.org/tools/web-apps-tracker?from=5913&to=5914

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4753
retrieving revision 1.4754
diff -u -d -r1.4753 -r1.4754
--- Overview.html 25 Feb 2011 07:53:04 -0000 1.4753
+++ Overview.html 25 Feb 2011 07:56:42 -0000 1.4754
@@ -37077,14 +37077,19 @@
   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 &minus;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

Received on Friday, 25 February 2011 07:59:22 UTC