W3C home > Mailing lists > Public > public-html@w3.org > January 2012

[Bug 15703] New: ":required" pseudo selector for a radio button group

From: <bugzilla@jessica.w3.org>
Date: Wed, 25 Jan 2012 03:13:14 +0000
To: public-html@w3.org
Message-ID: <bug-15703-2495@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=15703

           Summary: ":required" pseudo selector for a radio button group
           Product: HTML WG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: tkent@chromium.org
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


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>

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Wednesday, 25 January 2012 04:13:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:17:43 GMT