Bug 26442 - [: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
Summary: [:first-letter ][contenteditable] Typing at the end of an contenteditable ele...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: Macintosh Intel OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
: 41514 (view as bug list)
Depends on:
Blocks: 58911
  Show dependency treegraph
 
Reported: 2009-06-16 06:27 PDT by Dan POPA
Modified: 2011-10-19 14:50 PDT (History)
7 users (show)

See Also:


Attachments
Testcase showing described behavior (847 bytes, text/html)
2009-06-16 06:27 PDT, Dan POPA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan POPA 2009-06-16 06:27:00 PDT
Typing at the end of an contenteditable element having a :first-letter style applied on it only replaces the last character in the element.

<style>
.someclass:first-letter {
	font-weight: bold;
}
</style>
<div class="someclass" contenteditable="true">Some text</div>

Click at the end of the DIV and start typing.
Actual result: the last character from the DIV is replaced with the typed character.
Comment 1 Dan POPA 2009-06-16 06:27:46 PDT
Created attachment 31346 [details]
Testcase showing described behavior
Comment 2 thaddee6yann 2009-09-29 12:21:07 PDT
Another linked misbehaviour:
Typing a space at the end of the very same editable region duplicates the text.
Comment 3 mitz 2010-10-06 16:55:09 PDT
*** Bug 41514 has been marked as a duplicate of this bug. ***
Comment 4 Ronald Jaimes 2011-10-19 14:50:33 PDT
the same bug occurs in Windows