<?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>26442</bug_id>
          
          <creation_ts>2009-06-16 06:27:00 -0700</creation_ts>
          <short_desc>[:first-letter ][contenteditable] Typing at the end of an contenteditable element having a :first-letter style applied on it only replaces the last character in the element</short_desc>
          <delta_ts>2011-10-19 14:50:33 -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>HTML Editing</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>58911</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dan POPA">dpopa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>bero</cc>
    
    <cc>jparent</cc>
    
    <cc>justin.garcia</cc>
    
    <cc>mitz</cc>
    
    <cc>rfjaimes</cc>
    
    <cc>thaddee6yann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>126186</commentid>
    <comment_count>0</comment_count>
    <who name="Dan POPA">dpopa</who>
    <bug_when>2009-06-16 06:27:00 -0700</bug_when>
    <thetext>Typing at the end of an contenteditable element having a :first-letter style applied on it only replaces the last character in the element.

&lt;style&gt;
.someclass:first-letter {
	font-weight: bold;
}
&lt;/style&gt;
&lt;div class=&quot;someclass&quot; contenteditable=&quot;true&quot;&gt;Some text&lt;/div&gt;

Click at the end of the DIV and start typing.
Actual result: the last character from the DIV is replaced with the typed character.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126187</commentid>
    <comment_count>1</comment_count>
      <attachid>31346</attachid>
    <who name="Dan POPA">dpopa</who>
    <bug_when>2009-06-16 06:27:46 -0700</bug_when>
    <thetext>Created attachment 31346
Testcase showing described behavior</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150996</commentid>
    <comment_count>2</comment_count>
    <who name="">thaddee6yann</who>
    <bug_when>2009-09-29 12:21:07 -0700</bug_when>
    <thetext>Another linked misbehaviour:
Typing a space at the end of the very same editable region duplicates the text.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>290688</commentid>
    <comment_count>3</comment_count>
    <who name="">mitz</who>
    <bug_when>2010-10-06 16:55:09 -0700</bug_when>
    <thetext>*** Bug 41514 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>487026</commentid>
    <comment_count>4</comment_count>
    <who name="Ronald Jaimes">rfjaimes</who>
    <bug_when>2011-10-19 14:50:33 -0700</bug_when>
    <thetext>the same bug occurs in Windows</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>31346</attachid>
            <date>2009-06-16 06:27:46 -0700</date>
            <delta_ts>2009-06-16 06:27:46 -0700</delta_ts>
            <desc>Testcase showing described behavior</desc>
            <filename>first-letter.html</filename>
            <type>text/html</type>
            <size>847</size>
            <attacher name="Dan POPA">dpopa</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgVHJhbnNpdGlvbmFs
Ly9FTiINCgkiaHR0cDovL3d3dy53My5vcmcvVFIveGh0bWwxL0RURC94aHRtbDEtdHJhbnNpdGlv
bmFsLmR0ZCI+DQo8aHRtbD4NCjxoZWFkPg0KPHRpdGxlPjpmaXJzdC1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