New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onInput event detection support #210
Comments
|
Unfortunately the oninput event cannot be properly detected in Mozilla due to this bug. |
|
I added it to https://github.com/Modernizr/Modernizr/wiki/Undetectables thx :) |
|
Looks like FF4 has fixed the bug as oninput/oninvalid return correct results now. |
|
Forreal? And its in FF4 final? |
|
Yep, I only noticed the other day when I was playing around with some form stuff and FF4 started returning true for the events it previously failed on. http://jsfiddle.net/ryanseddon/cJwgq/ |
|
You can detect support in older versions of Firefox too, albeit with a lot of dicking around thanks to the bug. I wrote a jQuery plugin to normalize the event and that uses a variation of a technique outlined by Daniel Friesen at http://blog.danielfriesen.name/2010/02/16/html5-browser-maze-oninput-support/. His method creates a fake key press on a temp/hidden element in Firefox, which fires the Feel free to use/mutilate the test case I wrote; Only Firefox versions affected by the bug, IE8 and lower and very old browsers that don't support |
|
for now Modernizr is going to keep this one out of scope. We recommend Daniel's incredible research as well as Andy's jquery plugin. |
|
Any plans to implement this in the near future? |
|
I'd be keen to include it if someone could submit a PR based on @AndyE's test case above? |
|
Vote for feature. Situation: we use contenteditable and use |
|
These days, there's about three levels of input events support: I guess the initial const input_events_level1_or_better = 'inputType' in (new InputEvent('input')); |
It'll be nice if Modernizr can detect support for the
inputevent [1]. At the moment, at least Gecko and WebKit supports it.[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/common-input-element-attributes.html#common-event-behaviors
The text was updated successfully, but these errors were encountered: