This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Currently "current value" [1] default value is -1 but value IDL attribute default value when the element is in the indeterminate state is 0. Having two default values seems really confusing. The value IDL attribute should return 0 when the progress element is in the indeterminate state. [1] http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#concept-progress-value
data:text/html,<progress></progress><script>alert(document.getElementsByTagName('progress')[0].value)</script> Opera: 0 Webkit: 1 Specs: -1 I think we should change the specs so it is 0.
EDITOR'S RESPONSE: This is an Editor'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: Accepted Change Description: see diff given below Rationale: The idea was that |progress.value = progress.value| should not change the progress bar from one kind to another, but since I screwed that up by not raising an error if you set it to -1, I guess it doesn't much matter. Fixed.
Checked in as WHATWG revision r5914. Check-in comment: Define progress.value to default to 0, not -1. http://html5.org/tools/web-apps-tracker?from=5913&to=5914
mass-moved component to LC1