HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
606612119clarify how to make a determinate and indeterminate progress bar2011-05-04 22:15
@@ -55135,20 +55135,29 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
   fraction of work that has so far been completed.</p>
 
   <p>There are two attributes that determine the current task
   completion represented by the element. The <dfn
   title="attr-progress-value"><code>value</code></dfn> attribute
   specifies how much of the task has been completed, and the <dfn
   title="attr-progress-max"><code>max</code></dfn> attribute specifies
   how much work the task requires in total. The units are arbitrary
   and not specified.</p>
 
+  <p class="note">To make an determinate progress bar, add a <code
+  title="attr-progress-value">value</code> attribute with the current
+  progress (either a number from 0.0 to 1.0, or, if the <code
+  title="attr-progress-max">max</code> attribute is specified, a
+  number from 0 to the value of the <code
+  title="attr-progress-max">max</code> attribute. To make an
+  indeterminate progress bar, remove the <code
+  title="attr-progress-value">value</code> attribute.</p>
+
   <p>Authors are encouraged to also include the current value and the
   maximum value inline as text inside the element, so that the
   progress is made available to users of legacy user agents.</p>
 
   <div class="example">
    <p>Here is a snippet of a Web application that shows the progress
    of some automated task:</p>
    <pre>&lt;section>
  &lt;h2>Task Progress&lt;/h2>
  &lt;p>Progress: &lt;progress id="p" max=100>&lt;span>0&lt;/span>%&lt;/progress>&lt;/p>

|