Bug 62388
| Summary: | First EventListener "keypress" Ignored on JavaScript toggled contentEditable DIV | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Swivelgames <swivelgames> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | ||
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
| URL: | http://code.google.com/p/chromium/issues/detail?id=77624 | ||
Swivelgames
URLs (if applicable) : http://files.swivelgames.com/source/chromiumbug_recreation/chromium_issue.html
Browsers tested:
Safari 5: FAIL
Chrome 11: FAIL
Firefox 4: OK
IE 8: OK
What steps will reproduce the problem?
1. Open URL above in browser
2. Click editable DIV ("Here's some content...")
3. Type
4. Repeat step 3 until the bolded text changes.
What is the expected result?
> The counter should increase every time a key
> is pressed while the DIV is in focus.
What happens instead?
> The first keypress is ignored. Every time after
> the first key is pressed, the span is updated.
I just found a band-aid workaround for this issue. By using focus() after making contentEditable `true`, Chromium notices the first event.
http://files.swivelgames.com/source/chromiumbug_recreation/chromium_issue_bandaid.html
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
*** This bug has been marked as a duplicate of bug 61310 ***