Closed
Bug 1849807
Opened 2 years ago
Closed 2 years ago
Unnecessary `<br>` elements are inserted between block boundaries when selecting all things between them
Categories
(Core :: DOM: Editor, defect)
Core
DOM: Editor
Tracking
()
RESOLVED
INVALID
People
(Reporter: masayuki, Unassigned)
References
()
Details
See the test case. 2 <br>
elements are inserted unexpectedly. Only one <br>
element should be inserted instead.
Flags: needinfo?(jjaschke)
Reporter | ||
Comment 1•2 years ago
|
||
This is reproducible with older builds. Therefore, this is not a new regression.
Reporter | ||
Comment 2•2 years ago
|
||
If using insertParagraph
, it works as expected.
Reporter | ||
Comment 3•2 years ago
|
||
Sorry, I was confused.
If there is something which made the first line visible, replacing it with a line break should add a line break after making the first line empty.
Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(jjaschke)
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•