Closed
Bug 1350554
Opened 7 years ago
Closed 7 years ago
Editor creates redundant text node at typing something immediately after insertLineBreak
Categories
(Core :: DOM: Editor, defect)
Core
DOM: Editor
Tracking
()
RESOLVED
DUPLICATE
of bug 1175418
Tracking | Status | |
---|---|---|
firefox55 | --- | affected |
People
(Reporter: masayuki, Unassigned)
References
(Blocks 1 open bug, )
Details
Similar to bug 1175418, immediately after inserting line break (perhaps, other elements too), typing text causes creating new text node even if next node is a text node. Chrome and Edge inserts the typing text to start of the next text node. 1. Load https://jsfiddle.net/d_toybox/60s13tp4/1/ 2. Click middle of the editor for breaking line causes 2 text nodes 3. Click the button to insert a line break 4. Type something. Then, there should be only one text node after <br>.
Comment 1•7 years ago
|
||
My patch-in-progress for bug 1175418 fixes this test-case too. Why was this a separate bug to start with? Am I missing something?
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Comment 2•7 years ago
|
||
I was not sure if bug 1175418 is exactly same as this because this case may depend on transaction class's bug.
You need to log in
before you can comment on or make changes to this bug.
Description
•