This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
http://dev.w3.org/html5/spec/Overview.html#selector-required > :required > The :required pseudo-class must match any element falling into one of the following categories: > - input elements that are required According to this definition, radio1 in the following example is not matched to ":required" though radio1 is invalid. I think it's inconsistent and we had better add an exceptional rule for radio button groups. <form> <input type=radio name=group1 id=radio1> <input type=radio name=group1 required> </form>
By the way, radio buttons is a case where having @required attribute for fieldset would be handy: <fieldset required> <input type="radio" name="group1" id="radio1" /> <input type="radio" name="group1" /> </fieldset> So we could use FIELDSET:required instead of INPUT:required.
This bug was cloned to create bug 17818 as part of operation convergence.
Hixie moved upstream bug 17818 for this to resolved=wontfix with this comment: https://www.w3.org/Bugs/Public/show_bug.cgi?id=17818#c1 "This would require "spooky action at a distance" in selectors. I think if you want :required to match, it's reasonable to require you to set the attribute also." I'd suggest doing the same for this bug.
Note this appears to be addressing the same use case as 16061, so adding dependency. Not expressing an opinion between them but they should be resolved together.
Closed by Bug Triage, per resolution for bug 16061: https://www.w3.org/Bugs/Public/show_bug.cgi?id=16061