CLOSED INVALID 58855
onkeydown handler does not fire for editable elements
https://bugs.webkit.org/show_bug.cgi?id=58855
Summary onkeydown handler does not fire for editable elements
Justin Garcia
Reported 2011-04-18 17:40:32 PDT
onkeydown handler does not fire for editable elements. Open the attached test case and <body><div contentEditable="true" onkeydown="alert('Why doesn't the onkeydown handler fire?');">Click here and start typing.</div></body> <rdar://problem/9302570> onkeydown handler does not fire for editable elements
Attachments
testcase (137 bytes, text/html)
2011-04-18 17:43 PDT, Justin Garcia
no flags
Justin Garcia
Comment 1 2011-04-18 17:43:11 PDT
Created attachment 90123 [details] testcase
Alexey Proskuryakov
Comment 2 2011-04-18 19:46:03 PDT
It doesn't fire because there is an apostrophe inside your quoted string, so JavaScript parsing fails. You almost had me here - I was close to drawing a blank :)
Justin Garcia
Comment 3 2011-04-18 19:50:22 PDT
Oops. Sorry for the noise.
Note You need to log in before you can comment on or make changes to this bug.