positionForCoordinates() cursor placement does not match IE/FF If you click above/blow a line of text in an editable region, we place the cursor at the start or end of that line. FF and IE both do what Word/TextMate do, and place the cursor at the corresponding x offset in the line. TextEdit matches our behavior and places the cursor at the end of the line. In addition, we decided to test padding/margin behavior while here, and found that FF and IE and Safari all disagree: // When clicking between divs separated by margins in an editable // text region, the browsers differ in behavior: // FF3: vertical padding box + some sort of overhang decent? // IE6/IE7: vertical padding box // IE8 b2: margin box // Safari3: margin box (but cursor goes at end of line) We've fully shaved the yak, and written the end-all-be-all of clicking test cases. See attached.
Created attachment 27130 [details] test case (js only, needs to be in editing/selection/resources)
This can be fixed at the same time as fixing bug 23607.
This will be fixed by bug 23607, duping. *** This bug has been marked as a duplicate of 23607 ***