<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>17818</bug_id>
          
          <creation_ts>2012-07-18 06:54:40 +0000</creation_ts>
          <short_desc>&quot;:required&quot; pseudo selector for a radio button group</short_desc>
          <delta_ts>2012-09-26 04:00:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>cooper</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>mtanalin</cc>
    
    <cc>tkent</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>70106</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 06:54:40 +0000</bug_when>
    <thetext>This was was cloned from bug 15703 as part of operation convergence.
Originally filed: 2012-01-25 03:13:00 +0000
Original reporter: Kent Tamura &lt;tkent@chromium.org&gt;

================================================================================
 #0   Kent Tamura                                     2012-01-25 03:13:12 +0000 
--------------------------------------------------------------------------------
http://dev.w3.org/html5/spec/Overview.html#selector-required
&gt; :required
&gt;   The :required pseudo-class must match any element falling into one of the following categories:
&gt;    - input elements that are required

According to this definition, radio1 in the following example is not matched to &quot;:required&quot; though radio1 is invalid.  I think it&apos;s inconsistent and we had better add an exceptional rule for radio button groups.

&lt;form&gt;
&lt;input type=radio name=group1 id=radio1&gt;
&lt;input type=radio name=group1 required&gt;
&lt;/form&gt;
================================================================================
 #1   Marat Tanalin | tanalin.com                     2012-01-25 11:27:41 +0000 
--------------------------------------------------------------------------------
By the way, radio buttons is a case where having @required attribute for fieldset would be handy:

&lt;fieldset required&gt;
	&lt;input type=&quot;radio&quot; name=&quot;group1&quot; id=&quot;radio1&quot; /&gt;
	&lt;input type=&quot;radio&quot; name=&quot;group1&quot; /&gt;
&lt;/fieldset&gt;

So we could use FIELDSET:required instead of INPUT:required.
================================================================================</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74543</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-09-26 04:00:42 +0000</bug_when>
    <thetext>This would require &quot;spooky action at a distance&quot; in selectors. I think if you want :required to match, it&apos;s reasonable to require you to set the attribute also.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>