Closed
Bug 1137612
Opened 10 years ago
Closed 5 years ago
<br type="_moz"> is inserted on <p contenteditble="true">
Categories
(Core :: DOM: Editor, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1569902
People
(Reporter: thibaud.spieser, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0
Build ID: 20150224134236
Steps to reproduce:
On a <p contenteditable="true">
Write one or more character without spaces and press enter.
Actual results:
<p contenteditable="true">
o
<br></br>
<br type="_moz"></br>
</p>
Expected results:
<p contenteditable="true">
o
<br></br>
<br></br>
</p>
Updated•10 years ago
|
Component: Untriaged → Editor
Product: Firefox → Core
Not sure that this bug is limited to a <P>, or that any keystrokes are required.
Simply creating an empty contenteditable element causes a <br type="_moz"></br> to be inserted.
It appears consistently after changing the attributes of its element, however it's too difficult for me to pinpoint the exact cause of it.
I'm using 45.0.2.
Flags: needinfo?(thibaud.spieser)
Comment 2•8 years ago
|
||
I can confirm this happens in table cells with contenteditable=true:
<table>
<tr><td contenteditable=true></td></tr>
</table>
Both inspector and .innerHTML show <br type="_moz"> as contents of the table cell.
Version: 55.0.5 (64bit)
Same unnecessary <br type="_moz"> insertion appears when there's an iframe in a table cell like:
<table>
<tr>
<td>
<iframe>{content}</iframe>
</td>
</tr>
</table>
Version: 65.0
Comment 4•5 years ago
|
||
This is fixed by Bug 1569902.
CKEditor 4 still inserts <br type="_moz"> but it's set by their script, not Firefox itself.
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Flags: needinfo?(thibaud.spieser)
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•