Closed
Bug 1451662
Opened 7 years ago
Closed 7 years ago
Contenteditable br backspace issue
Categories
(Core :: DOM: Editor, defect, P3)
Tracking
()
RESOLVED
DUPLICATE
of bug 1453872
Tracking | Status | |
---|---|---|
firefox61 | --- | affected |
People
(Reporter: mattp, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:59.0) Gecko/20100101 Firefox/59.0
Build ID: 20180323154952
Steps to reproduce:
<div id="editor-content" contenteditable="true">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis in lacinia libero, vitae lobortis erat. Aliquam id varius diam, id elementum dui. Sed maximus, neque a iaculis porttitor, arcu leo convallis elit, sed suscipit massa augue non metus. Vivamus molestie ornare consectetur. Ut a rutrum libero. Curabitur eget arcu vehicula, dignissim elit in, consequat dolor. Donec posuere libero sem, id egestas ex congue nec. Pellentesque rutrum, ligula ac condimentum ullamcorper, nisi lorem efficitur erat, ut scelerisque augue dui vel diam. Quisque faucibus vulputate sapien. Sed ac sollicitudin eros.<br>
Morbi sit amet tincidunt nisl. Vivamus sed egestas sapien. Nullam eu odio erat. Donec ullamcorper tellus eget rutrum pellentesque. Nulla ac sem ut magna rhoncus vulputate. Cras tristique sodales lectus quis rhoncus. Quisque dapibus dictum ex, et ultricies felis sodales et. Nulla at semper ante. Nullam posuere justo eget nulla aliquet pellentesque. Duis non leo eget arcu tempor gravida sit amet sed metus.
</p>
</div>
Using the above html if you put the caret before 'Morbi' (after the br) and then backspace the caret position moves to the incorrect place.
Actual results:
The caret position jumps to the wrong place (for me it jumps to 'id egestas ex'). If you continue backspacing the wrong text gets deleted.
Expected results:
The caret position should stay where the br was deleted (after Sed ac sollicitudin eros.)
Updated•7 years ago
|
Status: UNCONFIRMED → NEW
status-firefox61:
--- → affected
Component: Untriaged → Editor
Ever confirmed: true
Product: Firefox → Core
Updated•7 years ago
|
Blocks: editor-blink-compat
Updated•7 years ago
|
Priority: -- → P3
Updated•7 years ago
|
No longer blocks: editor-blink-compat
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•