Open
Bug 1499349
Opened 6 years ago
Updated 2 years ago
Type outside of an inline element when the inline element is last visible content in a block, selection collapsed at its end and caret moved from another block
Categories
(Core :: DOM: Editor, defect, P3)
Core
DOM: Editor
Tracking
()
NEW
People
(Reporter: masayuki, Unassigned)
References
Details
STR:
1. Load https://jsfiddle.net/d_toybox/fm0unrd8/4/
2. Move caret at start of "normal text" (either 2nd paragraph or 4th paragraph).
3. Move caret with ArrowLeft key.
4. Type something.
Actual Result:
Typed text is appended to the <b> or <a> element.
Expected Result
Typed text should be inserted new text node.
The other browsers append text to the <b> but not in <a>. This inconsistency should be discussed in bug 1496320. However, this behavior is different from if user moves between inline elements. So, user cannot close the element without Enter key press. (i.e., workaround is press Enter and Backspace at end of <a>).
https://jsfiddle.net/d_toybox/68rqhLnc/3/
According to this testcase, our editor supports to create new text node if selection is collapsed at after the last inline element. So, perhaps, we could fix this with TypeInState::OnSelectionChange() and EditorBase::FindBetterInsertionPoint().
Updated•6 years ago
|
Priority: -- → P3
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•