[Webkit-unassigned] [Bug 65663] New: character appears in contenteditable without onkeydown event being fired

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 3 20:54:36 PDT 2011


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

           Summary: character appears in contenteditable without onkeydown
                    event being fired
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Event Handling
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mikelawther at chromium.org


As reported in http://crbug.com/72588:

1. Go to http://jsfiddle.net/ZSt2d/1/
2. Focus the bordered <div> and press a key - it will not appear in the <div> as the onkeydown event prevents this (CORRECT)
3. Click the button under the <div>. Now you can press a key and the character will be put in the <div> because the onkeydown event is not fired (BAD). After one key is pressed, any more keys are suppressed again, until you press the button again, which results in the same procedure again.

Code from link is:

<html>
    <head></head>
    <body>
        <div contenteditable="true" onkeydown="event.preventDefault();" style="border:1px solid black"></div>        
        <input type="button" value="Click me; then you are able to put one character in the div above me...">
    </body>
</html>

No characters should appear in the contenteditable.

Also tested (on Mac 10.6):

    WebKit nightly (r92303): FAIL
    Chrome 15.0.843.0 canary: FAIL
    Firefox 5.0.1: PASS
    Opera 11.50: PASS

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



More information about the webkit-unassigned mailing list