<?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>15703</bug_id>
          
          <creation_ts>2012-01-25 03:13:12 +0000</creation_ts>
          <short_desc>&quot;:required&quot; pseudo selector for a radio button group</short_desc>
          <delta_ts>2014-05-28 17:50:29 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>a11y, a11ytf</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>16061</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kent Tamura">tkent</reporter>
          <assigned_to name="Robin Berjon">robin</assigned_to>
          <cc>cooper</cc>
    
    <cc>lwatson</cc>
    
    <cc>mike</cc>
    
    <cc>mtanalin</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>robin</cc>
    
    <cc>w3bugs</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>63091</commentid>
    <comment_count>0</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2012-01-25 03:13:12 +0000</bug_when>
    <thetext>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;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63097</commentid>
    <comment_count>1</comment_count>
    <who name="Marat Tanalin | tanalin.com">mtanalin</who>
    <bug_when>2012-01-25 11:27:41 +0000</bug_when>
    <thetext>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>70107</commentid>
    <comment_count>2</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 06:54:43 +0000</bug_when>
    <thetext>This bug was cloned to create bug 17818 as part of operation convergence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76890</commentid>
    <comment_count>3</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2012-10-22 07:30:10 +0000</bug_when>
    <thetext>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

&quot;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.&quot;

I&apos;d suggest doing the same for this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81484</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Cooper">cooper</who>
    <bug_when>2013-01-16 14:50:21 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106927</commentid>
    <comment_count>5</comment_count>
    <who name="Léonie Watson">lwatson</who>
    <bug_when>2014-05-28 17:50:00 +0000</bug_when>
    <thetext>Closed by Bug Triage, per resolution for bug 16061:
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16061</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>