Opened 11 years ago
Last modified 10 years ago
#9121 closed feature
Add support for the HTML5 `oninput` event — at Version 9
Reported by: | Andy E | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | event | Version: | 1.6 |
Keywords: | 1.7-discuss | Cc: | |
Blocked by: | Blocking: |
Description (last modified by )
All the edge major browsers appear to support the oninput
event, which fires for text input into an element. The event itself is superior to key events because it fires for all forms of text input.
A while ago, I wrote a plugin that normalizes the event for browsers that don't support it, notably IE6-8. I believe this works well enough, despite a few limitations. Despite the existence of this event (and the plugin), every day I see people recommending the use of onkeyup
for acting on user input. Integrating this event into jQuery may help these users learn to handle user input more appropriately.
The following fiddle demonstrates the event (and the plugin) very basically: http://jsfiddle.net/B459a/
Change History (9)
comment:1 Changed 11 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:2 Changed 11 years ago by
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
This was suggested for 1.7.
comment:4 Changed 11 years ago by
Description: | modified (diff) |
---|
-1, Let's start as a plugin so that we can assess the limitations.
comment:6 Changed 11 years ago by
Component: | unfiled → event |
---|---|
Description: | modified (diff) |
Priority: | undecided → low |
Status: | reopened → open |
comment:8 Changed 11 years ago by
I wrote a plugin (as I said in the original filing). I also discuss some of the limitations in the same post.
http://whattheheadsaid.com/projects/input-special-event
Also, I've just noticed a bug in IE 9 where the oninput
event doesn't fire when the backspace or delete keys are pressed - my plugin doesn't yet deal with that.
comment:9 Changed 11 years ago by
Description: | modified (diff) |
---|
-1, Would be good to prove as a plugin.
This is quite a bit of code so I don't think we're in a hurry to include it into core. I'd suggest making it available as a plugin for now. If you'd like to suggest it for 1.7: https://spreadsheets.google.com/viewform?hl=en&authkey=CPmgicsO&formkey=dG0yTEs2ZTFWQUhDRUp5dzRyc3NwV2c6MA#gid=0