Bug 81236 - Insertion point difference between designMode and contentEditable
Summary: Insertion point difference between designMode and contentEditable
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-15 10:52 PDT by maxst
Modified: 2012-03-16 11:56 PDT (History)
3 users (show)

See Also:


Attachments
Reduced repro page, text/html (3.18 KB, text/html)
2012-03-15 10:52 PDT, maxst
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.