<?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>23449</bug_id>
          
          <creation_ts>2013-10-07 17:15:55 +0000</creation_ts>
          <short_desc>&lt;input&gt;: Fire an &apos;input&apos; event before the &apos;change&apos; event for type=radio, type=checkbox, and type=file</short_desc>
          <delta_ts>2013-12-19 00:10:58 +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>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#radio-button-state-(type=radio)</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</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>bugs</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>darin</cc>
    
    <cc>dbaron</cc>
    
    <cc>dglazkov</cc>
    
    <cc>ian</cc>
    
    <cc>jackalmage</cc>
    
    <cc>james</cc>
    
    <cc>jeanne</cc>
    
    <cc>jonas</cc>
    
    <cc>micdesim</cc>
    
    <cc>michelangelo</cc>
    
    <cc>mike</cc>
    
    <cc>mounir</cc>
    
    <cc>ojan</cc>
    
    <cc>tkent</cc>
    
    <cc>travil</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>94396</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-10-07 17:15:55 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html
Multipage: http://www.whatwg.org/C#radio-button-state-(type=radio)
Complete: http://www.whatwg.org/c#radio-button-state-(type=radio)
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html

Comment:
On change, it fires a &quot;change&quot;event. Why not also an &quot;oninput&quot; event? (just
like text-like input types)

Posted from: 186.244.78.149
User agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.66 Safari/537.36</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94417</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-10-07 21:41:00 +0000</bug_when>
    <thetext>Hm, interesting, we indeed do not. I thought we did. I wonder why.

Can anyone see a reason not to fire &apos;input&apos; events on &lt;input type=radio&gt; elements?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94470</commentid>
    <comment_count>2</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-10-08 15:34:30 +0000</bug_when>
    <thetext>Adding the Gecko person who knows events.  ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95147</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-10-22 22:38:40 +0000</bug_when>
    <thetext>Also type=checkbox and type=file.

I propose firing the &apos;input&apos; event immediately before firing the &apos;change&apos; event, in all three cases. If anyone can think why we shouldn&apos;t do that, please do let me know. I can&apos;t find any trace of why we don&apos;t already (still looking though).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95238</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-10-23 20:09:02 +0000</bug_when>
    <thetext>Looks like this has been this way since r2282 when change and input events were first specced. I don&apos;t understand why; in WF2 &apos;input&apos; was fired on everything:

   http://www.whatwg.org/specs/web-forms/current-work/#the-change

Since I can&apos;t find any rationale for not doing it and nobody has spoken up, I&apos;ll do the change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97762</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-12-17 23:53:02 +0000</bug_when>
    <thetext>Also &lt;select&gt;. So specifically:

   type=checkbox
   type=radio
       Change the activation behaviour to fire &apos;input&apos; synchronously with the 
       &apos;change&apos; event, immediately before it.
       Make &apos;input&apos; apply.

   type=file
       Make &apos;input&apos; apply.

   &quot;Common event behaviors&quot;
       Add the &quot;activation behaviour&quot; caveat to &apos;input&apos;.
       Add the &quot;selected files&quot; item to &apos;input&apos;.

   &lt;select&gt;
       Abstract out the &apos;change&apos; event prose and add &apos;input&apos; to it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97792</commentid>
    <comment_count>6</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-12-19 00:03:59 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8367.
Check-in comment: Revamp &apos;input&apos; and &apos;change&apos; event logic for &lt;input&gt; elements. The primary goal here is to make &apos;input&apos; events fire on type=checkbox, type=radio, and type=file, but this also improves the way other things here are phrased.
http://html5.org/tools/web-apps-tracker?from=8366&amp;to=8367</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97793</commentid>
    <comment_count>7</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-12-19 00:10:58 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8368.
Check-in comment: Fire &apos;input&apos; events on &lt;select&gt; also.
http://html5.org/tools/web-apps-tracker?from=8367&amp;to=8368</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>