Open
Bug 1857410
Opened 3 years ago
`formatBlock` may create `<p>` under `<p>`
Categories
(Core :: DOM: Editor, defect, P4)
Core
DOM: Editor
Tracking
()
NEW
People
(Reporter: masayuki, Unassigned)
References
(Blocks 2 open bugs, )
Details
(Keywords: parity-chrome, parity-safari)
If <pre>[abc<p>def]</p></pre>, document.querySelector("formatBlock", false, "p") should format the first like with <p>. Then, the second line is already in <p>, so, it should not be touched. However, Gecko creates invalid tree, <p>abc<p>def</p></p>, with simply replacing the <pre> with new <p>.
You need to log in
before you can comment on or make changes to this bug.
Description
•