<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>11939</bug_id>
          
          <creation_ts>2011-02-01 11:55:26 +0000</creation_ts>
          <short_desc>&lt;meter&gt; (actually &lt;progress&gt;) � element max IDL attribute should return actual maximum value instead of reflecting the content attribute</short_desc>
          <delta_ts>2011-08-17 20:17:50 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>LC1 HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>CORE-39866</status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>12780</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mounir Lamouri">mounir</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>contributor</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>44938</commentid>
    <comment_count>0</comment_count>
    <who name="Mounir Lamouri">mounir</who>
    <bug_when>2011-02-01 11:55:26 +0000</bug_when>
    <thetext>The value IDL attribute reflects the &quot;current value&quot; [1] which seems far more complex than the &quot;maximum value&quot; [2]. Reflecting the maximum value only adds one rule: if the content attribute is negative, it&apos;s returning the default value.

[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#concept-progress-value
[2] http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#concept-progress-maximum</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44943</commentid>
    <comment_count>1</comment_count>
    <who name="Mounir Lamouri">mounir</who>
    <bug_when>2011-02-01 13:56:24 +0000</bug_when>
    <thetext>data:text/html,&lt;progress max=&apos;-1&apos;&gt;&lt;/progress&gt;&lt;script&gt;alert(document.getElementsByTagName(&apos;progress&apos;)[0].max)&lt;/script&gt;

Opera: -1
Webkit: -1
Specs: -1

I propose to change that for 0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46032</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-02-25 07:57:42 +0000</bug_when>
    <thetext>I don&apos;t follow. What problem would this solve?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46054</commentid>
    <comment_count>3</comment_count>
    <who name="Mounir Lamouri">mounir</who>
    <bug_when>2011-02-25 14:27:33 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; I don&apos;t follow. What problem would this solve?

Actually, I would take it the other way. Why does .max reflects the content attribute when .value reflects the &quot;current value&quot;. I think it would be more consistent to have .max reflecting the &quot;maximum value&quot;.
I agree it&apos;s not solving anything but I don&apos;t thing the current specifications makes more sense than what I propose (or solving anything...). My proposition could be more convenient in some situations. For example, you can guess the position when the progress element is determinate by doing progress.value/progress.max.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48062</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-05-05 08:06:44 +0000</bug_when>
    <thetext>I guess .value doesn&apos;t have to reflect the current value, we could change that to reflecting the attribute directly. Not sure why I made it more complicated. Probably no point changing that now though, since it seems interoperably implemented.

Note that you never have to guess the position. Just use progress.position, which always returns the current position.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48385</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-05-09 22:51:16 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: see comment 4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48810</commentid>
    <comment_count>6</comment_count>
    <who name="Mounir Lamouri">mounir</who>
    <bug_when>2011-05-25 15:35:27 +0000</bug_when>
    <thetext>It looks like all implementations of &lt;meter&gt; have IDL attributes reflecting the current value instead of the content attributes. If bug 12780 is fixed, the consistency issue raised in that bug might be more important (progress.max would be the only attributes in the meter/progress pair reflecting the content attributes and not the current value).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50667</commentid>
    <comment_count>7</comment_count>
    <who name="Mounir Lamouri">mounir</who>
    <bug_when>2011-07-05 12:53:59 +0000</bug_when>
    <thetext>*** Bug 13139 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50669</commentid>
    <comment_count>8</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-07-05 13:35:56 +0000</bug_when>
    <thetext>For &lt;progress max=0&gt; the max IDL attribute returns 1 in both WebKit and Gecko. That is not simple reflection going on as far as I can tell.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50717</commentid>
    <comment_count>9</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-07-06 10:22:33 +0000</bug_when>
    <thetext>Comment 1 is also incorrect. Both Gecko and WebKit return 1 for that now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53392</commentid>
    <comment_count>10</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:13:25 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55334</commentid>
    <comment_count>11</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-08-17 20:17:29 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Partially Accepted
Change Description: see diff given below
Rationale: I&apos;ve tried to converge on what browsers are doing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55335</commentid>
    <comment_count>12</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-08-17 20:17:50 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r6490.
Check-in comment: track implementations
http://html5.org/tools/web-apps-tracker?from=6489&amp;to=6490</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>