<?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>26353</bug_id>
          
          <creation_ts>2014-07-16 07:06:14 +0000</creation_ts>
          <short_desc>RadioNodeList.value should return &quot;on&quot; if element&apos;s value is undefined</short_desc>
          <delta_ts>2014-09-06 21:02:56 +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>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dirkjan Ochtman">dirkjan</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>Ms2ger</cc>
    
    <cc>zhiqiang.zhang</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>108984</commentid>
    <comment_count>0</comment_count>
    <who name="Dirkjan Ochtman">dirkjan</who>
    <bug_when>2014-07-16 07:06:14 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/common-dom-interfaces.html#radionodelist

In step 2 of the specification for getting the &quot;value&quot; attribute, the spec says:

If element is null, or if it is an element with no value attribute, return the empty string.

However, as specified in section 4.10.5 (http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html), input elements of type radio have value mode &quot;default/on&quot;, such that their .value is supposed to be &quot;on&quot; if undefined (http://www.whatwg.org/specs/web-apps/current-work/multipage/common-input-element-attributes.html#dom-input-value-default-on). As such, it would make sense to add separate steps 2a and 2b (or whatever):

2a. If element is null, return the empty string.
2b. If the element has no value attribute, return &quot;on&quot;.

Indeed, some of the tests at https://github.com/w3c/web-platform-tests/blob/master/html/infrastructure/common-dom-interfaces/collections/radionodelist.html currently fail on Chrome (and in my proposed Gecko patch, for https://bugzilla.mozilla.org/show_bug.cgi?id=779723) due to this issue. I submitted a pull request for the test: https://github.com/w3c/web-platform-tests/pull/1108.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109022</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-07-16 19:51:52 +0000</bug_when>
    <thetext>Seems reasonable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109050</commentid>
    <comment_count>2</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2014-07-17 09:57:48 +0000</bug_when>
    <thetext>21:15	djc	Hixie: so, for https://www.w3.org/Bugs/Public/show_bug.cgi?id=26353, what&apos;s next?
21:15	Hixie	i fix the bug
21:16	Hixie	might take a while, i&apos;m rebuilding my publication pipeline and have quite a baclog
21:16	Hixie	backlog
21:16	Hixie	but you can assume the spec will be adjusted accordingly</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109061</commentid>
    <comment_count>3</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2014-07-17 16:42:08 +0000</bug_when>
    <thetext>There&apos;s a link to the bug in the test: &lt;https://github.com/w3c/web-platform-tests/commit/9f8243aebe785e2c2ddce1ca6a2cd1d36b29bf6f&gt;. Please poke me when you fix the bug so I can remove it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111038</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-04 21:30:51 +0000</bug_when>
    <thetext>I also fixed the setter to do the corresponding magic.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111039</commentid>
    <comment_count>5</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-09-04 21:31:15 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8744.
Check-in comment: Make RadioNodeList&apos;s radio button logic support the magical &apos;on&apos; value.
http://html5.org/tools/web-apps-tracker?from=8743&amp;to=8744</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111132</commentid>
    <comment_count>6</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2014-09-06 21:02:56 +0000</bug_when>
    <thetext>Thanks:

https://github.com/w3c/web-platform-tests/pull/1231</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>