<?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>24949</bug_id>
          
          <creation_ts>2014-03-05 22:13:18 +0000</creation_ts>
          <short_desc>Should &apos;change&apos; fire for programmatic changes?</short_desc>
          <delta_ts>2016-04-25 15:39:31 +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>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Travis Leithead [MSFT]">travil</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>mike</cc>
    
    <cc>mounir</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</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>101934</commentid>
    <comment_count>0</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2014-03-05 22:13:18 +0000</bug_when>
    <thetext>HI,
I would like to know expected behaviour for below 
should  &apos;change&apos; event fire when the text field value is changed programatically ?
Ex:
&lt;html&gt;
&lt;body&gt;
&lt;input onkeyup=&quot;this.value = this.value.toUpperCase()&quot; onchange=&quot;console.log(&apos;onchange dispatched&apos;);&quot;/&gt;
&lt;/body&gt;
&lt;/html&gt;
In this case when user updates the value, its get programatically modifed again due to keyup handler.
I see different behaviour in different browser.
Does change event be fired when programatically changed on specific to keyup handler.
 
Thanks in Advance,
Gnana</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101980</commentid>
    <comment_count>1</comment_count>
    <who name="Mounir Lamouri">mounir</who>
    <bug_when>2014-03-06 15:34:02 +0000</bug_when>
    <thetext>Shouldn&apos;t the change event be fired if the value changes between the user focusing the element and the user blurring the element for &lt;input type=&apos;text&apos;&gt;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126085</commentid>
    <comment_count>2</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2016-04-25 15:39:31 +0000</bug_when>
    <thetext>HTML5.1 Bugzilla Bug Triage: Works for me.

Yes, per 4.10.5.5. Common event behaviors, I believe the spec is [fairly] clear that &apos;change&apos; fires after a &apos;commit&apos; action or on blur (after being focused). In one of the examples, input from the user typing does not fire it until focus is lost.

If this resolution is not satisfactory, please copy the relevant bug details/proposal into a new issue at the W3C HTML5 Issue tracker: https://github.com/w3c/html/issues/new where it will be re-triaged. Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>