<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>62388</bug_id>
          
          <creation_ts>2011-06-09 11:38:22 -0700</creation_ts>
          <short_desc>First EventListener &quot;keypress&quot; Ignored on JavaScript toggled contentEditable DIV</short_desc>
          <delta_ts>2011-06-10 21:29:55 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>61310</dup_id>
          
          <bug_file_loc>http://code.google.com/p/chromium/issues/detail?id=77624</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Swivelgames">swivelgames</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>418140</commentid>
    <comment_count>0</comment_count>
    <who name="Swivelgames">swivelgames</who>
    <bug_when>2011-06-09 11:38:22 -0700</bug_when>
    <thetext>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 (&quot;Here&apos;s some content...&quot;)
3. Type
4. Repeat step 3 until the bolded text changes.

What is the expected result?
&gt; The counter should increase every time a key
&gt; is pressed while the DIV is in focus.

What happens instead?
&gt; The first keypress is ignored. Every time after
&gt; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>419148</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-06-10 21:29:55 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 61310 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>