contentEditable cursor displayed in wrong place when after newline
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: marijnh, Unassigned, NeedInfo)
Details
Attachments
(1 file)
313 bytes,
text/html
|
Details |
When the cursor is set in an editable element, at the end of a text node that ends in a visible newline, the cursor gets drawn before instead of after the newline.
If you open attached HTML file you can see it happen—the selection is set after the newline that follows "ab", but the browser shows a blinking cursor directly after the "ab" text.
This is very very similar to https://bugzilla.mozilla.org/show_bug.cgi?id=1690502 , which was fixed in a way that solves the test submitted there, but not this slight variation on it. The problem only occurs when the extra code tag around the text is present—the case where that isn't was solved by the patch for issue 1690502.
Comment 1•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 3•1 year ago
|
||
I wonder if this is related to Bug 1819551 which deals with line break shennanigans in contenteditable. I'll look deeper...
(keeping the ni?)
Updated•1 year ago
|
Updated•1 year ago
|
Description
•