W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > November 2010

[Bug 11212] New: Make all the radio button group suffering from being missing (instead of only radio's with the required attribute)

From: <bugzilla@jessica.w3.org>
Date: Thu, 04 Nov 2010 00:21:36 +0000
To: public-html-bugzilla@w3.org
Message-ID: <bug-11212-2486@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11212

           Summary: Make all the radio button group suffering from being
                    missing (instead of only radio's with the required
                    attribute)
           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: mounir.lamouri@gmail.com
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


Currently, when a radio button is required, it will suffer from being missing
if no radio elements in the radio button group is checked. However, radio
elements in the group will not suffer from being missing if they do not have
the required attribute. In other words, if you try to style invalid elements
with :invalid, and do:
<input type='radio' name='s' value='M' required>
<input type='radio' name='s' value='F'>
only the first element will be styled.

I think we should move the requirement to the radio button group that way: "The
radio button group suffers from being missing if one of the input elements in
the radio button group is required and all of them have a checkedness that is
false." and radio elements would have this constraint: "If the radio button
group is suffering from being missing, the element is suffering from being
missing.".

That way, all radio elements in the same radio button group will have the same
validity state. That would be less annoying for authors and error proof while
making things clearer (IMO).

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Thursday, 4 November 2010 00:21:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 4 November 2010 00:21:42 GMT