This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 11938 - Progress element value IDL attribute default value should be 0 instead of -1
Summary: Progress element value IDL attribute default value should be 0 instead of -1
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML5 spec (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-01 11:52 UTC by Mounir Lamouri
Modified: 2011-08-04 05:03 UTC (History)
4 users (show)

See Also:


Attachments

Description Mounir Lamouri 2011-02-01 11:52:07 UTC
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
Comment 1 Mounir Lamouri 2011-02-01 13:54:36 UTC
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.
Comment 2 Ian 'Hixie' Hickson 2011-02-25 07:55:52 UTC
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.
Comment 3 contributor 2011-02-25 07:56:49 UTC
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
Comment 4 Michael[tm] Smith 2011-08-04 05:03:03 UTC
mass-moved component to LC1