Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Internet Explorer - "input" event get fired when setting/unsetting the placeholder.

$
0
0
Hi,

I have found an issue in Internet Explorer 10 on Windows 7,8 and RT.

The issue <textarea></textarea> tags are calling the "input" event when the browser is setting the placeholder on load. This does not happen with <input /> tags.

I have setup this jsFiddle, to demonstrate.

http://jsfiddle.net/CubedEye/DnNLH/7/

I thought it might have something to do with the <textarea> with the placeholder being first, so I made this jsFiddle with it as the second element

http://jsfiddle.net/CubedEye/DnNLH/8/

I have just tested this in IE11 Developer Preview and it's still an issue.


My understanding of the "input" event from here:

http://www.w3.org/TR/html51/iana.html#events-0

Is that the event should ONLY fire when the user changes the value.


Cheers,

Steve

Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>