Open
Bug 1245920
Opened 10 years ago
Updated 5 years ago
Cursor nav loop in contenteditable with mixed rtl and ltr text
Categories
(Core :: DOM: Editor, defect, P5)
Tracking
()
UNCONFIRMED
People
(Reporter: tomwuttke, Unassigned)
Details
(Whiteboard: dom-triaged)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.97 Safari/537.36
Steps to reproduce:
See http://codepen.io/anon/pen/EPeOGY
Or make a page with this html:
<!DOCTYPE html><html><head></head><body>
Focus the editable, and press right arrow over and over.
<div dir="rtl" contenteditable="true">Englishעברית</div>
</body></html>
Focus the editable, and press right arrow over and over.
Actual results:
Cursor loops over the rtl word.
Expected results:
Cursor should stop at the right edge.
Note - if you add other html before or after on the page, the bug often stops happening. Also, I have seen it happen on the first word in a rtl contenteditable.
This was happening consistently on a complex page for me, but I was unable to determine the cause. A strange workaround that prevented it was to place a dummy <div style="inline"> </div> node before and after the contenteditable, but that is obviously not ideal. Using a span did not work, neither did a div without the inline style, nor the by itself.
Updated•9 years ago
|
Whiteboard: dom-triaged
Comment 1•5 years ago
|
||
Bulk-downgrade of unassigned, 4 years untouched DOM/Storage bugs' priority.
If you have reason to believe this is wrong (especially for the severity), please write a comment and ni :jstutte.
Severity: normal → S4
Priority: -- → P5
You need to log in
before you can comment on or make changes to this bug.
Description
•