Bug 81236

Summary: Insertion point difference between designMode and contentEditable
Product: WebKit Reporter: maxst
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: UNCONFIRMED ---    
Severity: Normal CC: ap, enrica, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Reduced repro page, text/html none

Description maxst 2012-03-15 10:52:47 PDT
Created attachment 132078 [details]
Reduced repro page, text/html

I’ve attached a reduced repro page for this behavior.  The IP should appear at the end of the first line.  This works in ContentEditable but not in designMode (there shouldn’t be any difference between the two).  This repros in at least Chrome and Mobile Safari.

Steps:
1)	Load BeforeSpace.htm in a webkit browser
2)	Note that the IP appears at the beginning of the second line of text
3)	Edit BeforeSpace.htm and change the function “setup” to call “setupType2” instead of “setupType1”.
4)	Reload BeforeSpace.htm in the browser
5)	Note that the IP appears at the end of the first line of text

Expected:
                Both cases to show the IP at the end of the first line of text.

Results:
                The first case shows the IP at the start of the second line.  The two should behave the same.