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 21820 - :indeterminate should match radio buttons when no radio in the group has been selected yet. http://dev.w3.org/csswg/selectors/#indeterminate
Summary: :indeterminate should match radio buttons when no radio in the group has been...
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-24 21:12 UTC by contributor
Modified: 2013-07-13 15:06 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2013-04-24 21:12:05 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/selectors.html
Multipage: http://www.whatwg.org/C#pseudo-classes
Complete: http://www.whatwg.org/c#pseudo-classes
Referrer: 

Comment:
:indeterminate should match radio buttons when no radio in the group has been
selected yet. http://dev.w3.org/csswg/selectors/#indeterminate

Posted from: 2620:0:1000:1b01:a2b3:ccff:fefb:42ac
User agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.47 Safari/537.36
Comment 1 contributor 2013-06-05 20:55:15 UTC
Checked in as WHATWG revision r7910.
Check-in comment: Make :indeterminate match <input type=radio> elements when there's no checked button in the group
http://html5.org/tools/web-apps-tracker?from=7909&to=7910
Comment 2 Mounir Lamouri 2013-06-20 15:17:25 UTC
Two edge case scenario:
- if the radio button isn't in a group (ie. @name isn't set)?
- if the radio button is in a group but there is no other radio button?

Should :indeterminate apply in both cases? or only in the second?
Comment 3 Ian 'Hixie' Hickson 2013-07-13 15:06:42 UTC
Mounir: All radio buttons are in a group, but if they have no name attribute their group only contains them. So an unchecked radio button with no name="" attribute is :indeterminate, yes. Same with the case of a radio button with a name="" attribute and no other radio buttons in the group. Basically the cases are the same (group with one element).

If you'd like this changed, feel free to reopen the bug.