Open Bug 926322 Opened 11 years ago Updated 3 months ago

[contenteditable] Using arrow kyes selection can be placed inside non-editable element containing image

Categories

(Core :: DOM: Editor, defect)

24 Branch
x86
Linux
defect

Tracking

()

People

(Reporter: pkoszulinski, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 (Beta/Release)
Build ID: 20130911160237

Steps to reproduce:

1. Open attached sample (firefox-noneditable-image.html).
2. Place caret in editable div.
3. Navigate through non-editable span using arrows.


Actual results:

Caret can be placed inside non-editable span on both sides of the to image.


Expected results:

It should not be possible to place caret in non-editable element.

This issue was reported on CKEditor's bug tracker (http://dev.ckeditor.com/ticket/10946) and in this case is worse, because caret is completely stuck in that place.
I can reproduce the effect described above.
Status: UNCONFIRMED → NEW
Component: Untriaged → Editor
Ever confirmed: true
Product: Firefox → Core
The issue is still here and complicates text navigation using keyboard arrows in Firefox, there is no such a problem in Chrome. Looks like it is only problematic with images. If an image is replaced by a DIV keys works fine, here is a JS fiddle to show the behaviour with images and divs http://jsfiddle.net/19wxgL5h/1/
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: