RE: should 'change' event fire when the text field value is changed programatically

I filed bug:
https://www.w3.org/Bugs/Public/show_bug.cgi?id=24949
To track this more permanently.
-Thanks!
From: GNANASEKAR S [mailto:gnanasekar.s@samsung.com]
Sent: Wednesday, March 5, 2014 7:02 AM
To: public-html@w3.org
Subject: should 'change' event fire when the text field value is changed programatically


HI,

I would like to know expected behaviour for below

should  'change' event fire when the text field value is changed programatically ?

Ex:

<html>
<body>
<input onkeyup="this.value = this.value.toUpperCase()" onchange="console.log('onchange dispatched');"/>
</body>
</html>

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





[cid:image001.gif@01CF387D.23ADE4A0]

[http://ext.samsung.net/mailcheck/SeenTimeChecker?do=cf2f77844cba6c9853d682e0b43b79b8e81e32d14d308d115836d8ab7822b9229a841dbf6eef57efa30d3f317564116349e5ff3dfdc8681d76f80bf81d31c863cf878f9a26ce15a0]

Received on Wednesday, 5 March 2014 22:14:24 UTC