[Webkit-unassigned] [Bug 22135] oninput doesn't work on divs

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jun 13 11:11:25 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=22135





------- Comment #5 from shadow2531 at gmail.com  2009-06-13 11:11 PDT -------
(In reply to comment #3)
> To quote HTML5: "The following are the event handler attributes that must be
> supported by all HTML elements, as both content attributes and DOM attributes,
> and on Window objects, as DOM attributes:"
> and then proceeds to list a bunch (not including oninput).
> 

Sorry, I guess it's just like you said. Works for the 'change' event too. You
can do window.oniput = func, document.oninput = func and element.oninput = func
(or use the addEventListener way or oninput= if the object is an element) and
they'll be triggered by all descendants of that object that happen to fire
'input' (like input elements and textareas etc).

Only thing is, window.addEventListener('input'
function(e){alert(e.currentTarget);}, false); will alert a window object in
Firefox and a document object in Safari and Opera. That's for another bug
though.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list