Skip to content

Commit

Permalink
[giow] (1) Define progress.value to default to 0, not -1.
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=11938

git-svn-id: http://svn.whatwg.org/webapps@5914 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 25, 2011
1 parent 0309896 commit 1940f02
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 25 deletions.
21 changes: 13 additions & 8 deletions complete.html
Expand Up @@ -47053,14 +47053,19 @@ <h4 id=the-progress-element><span class=secno>4.10.16 </span>The <dfn><code>prog
attribute must return &minus;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
Expand Down
21 changes: 13 additions & 8 deletions index
Expand Up @@ -47036,14 +47036,19 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href=#htmleleme
attribute must return &minus;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
Expand Down
23 changes: 14 additions & 9 deletions source
Expand Up @@ -52761,15 +52761,20 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
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
Expand Down

0 comments on commit 1940f02

Please sign in to comment.