W3C home > Mailing lists > Public > public-html-admin@w3.org > March 2014

[Bug 24949] New: Should 'change' fire for programmatic changes?

From: <bugzilla@jessica.w3.org>
Date: Wed, 05 Mar 2014 22:13:18 +0000
To: public-html-admin@w3.org
Message-ID: <bug-24949-2495@http.www.w3.org/Bugs/Public/>

            Bug ID: 24949
           Summary: Should 'change' fire for programmatic changes?
           Product: HTML WG
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec
          Assignee: dave.null@w3.org
          Reporter: travil@microsoft.com
        QA Contact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-admin@w3.org,

I would like to know expected behaviour for below 
should  'change' event fire when the text field value is changed
programatically ?
<input onkeyup="this.value = this.value.toUpperCase()"
onchange="console.log('onchange dispatched');"/>
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

Thanks in Advance,

You are receiving this mail because:
You are on the CC list for the bug.
Received on Wednesday, 5 March 2014 22:13:20 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:57:26 UTC