Bug Tracker

Opened 11 years ago

Last modified 10 years ago

#9121 closed feature

Add support for the HTML5 `oninput` event — at Version 11

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 Rick Waldron)

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:

Change History (11)

comment:1 Changed 11 years ago by dmethvin

Resolution: wontfix
Status: newclosed

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

comment:2 Changed 11 years ago by john

Resolution: wontfix
Status: closedreopened

This was suggested for 1.7.

comment:3 Changed 11 years ago by john

Keywords: 1.7-discuss added

Nominating ticket for 1.7 discussion.

comment:4 Changed 11 years ago by jaubourg

Description: modified (diff)

-1, Let's start as a plugin so that we can assess the limitations.

comment:5 Changed 11 years ago by timmywil

-1, plugin

comment:6 Changed 11 years ago by timmywil

Component: unfiledevent
Description: modified (diff)
Priority: undecidedlow
Status: reopenedopen

comment:7 Changed 11 years ago by dmethvin

-1, Plugin first.

comment:8 Changed 11 years ago by anonymous

I wrote a plugin (as I said in the original filing). I also discuss some of the limitations in the same post.


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 john

Description: modified (diff)

-1, Would be good to prove as a plugin.

comment:10 Changed 11 years ago by Andy E

I'm not sure I understand this, do you mean an "official" plugin of some sort, or are people just not reading the ticket properly? Despite the ticket body and my other comment saying "I have already provided a plugin", everyone is still saying "-1 plugin first".

This has left me rather confused.

comment:11 Changed 11 years ago by Rick Waldron

Description: modified (diff)

hey Andy,

The comments you see are votes by core, bus and ui team members - this ticket was elevated to 1.7 proposal status.

As for official plugin, that's not likely - but if you write a solid plugin that has a high adoption rate, there is a better chance for core consideration, though rare

hope that cleared things up for you. Feel free to ask any other questions!

Note: See TracTickets for help on using tickets.