Open Bug 418136 Opened 16 years ago Updated 2 years ago

Contenteditable line break causes caret to be offsets incorrectly

Categories

(Core :: DOM: Editor, defect)

x86
Windows Vista
defect

Tracking

()

People

(Reporter: cpearce, Unassigned)

References

Details

(Keywords: testcase)

Attachments

(1 file)

Attached file Testcase
If you have a contenteditable div with a line break between the end of the initial text and the </div>, when you position the cursor at the end of the editable area, the caret appears one space the the right of the last character. However if you start typing, the text does not appear after a space, it appears directly after the last character.

The linebreak before the </div> is being interpreted as a space by the caret spacing code, but the editing code isn't treating it as a space. So when you position the caret at the end of an editable div with a linebreak before its </div>, the caret should not be offset by a space.
Keywords: testcase
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: