Make deletion handler of `HTMLEditor` never touch the basic structure of HTML document
Categories
(Core :: DOM: Editor, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox82 | --- | fixed |
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
Attachments
(1 file)
Currently, HTMLEditor
tries to join <body>
element with <head>
element when you type Backspace
at start of <body>
element and <html>
has contenteditable
attribute. However, of course, it'll fail in deep point in the handler, but that makes partially done something at the preparation. Instead, deletion handler should quit earlier.
This bug makes writing patches for bug 1658702 harder so that I'll fix this soon.
Assignee | ||
Comment 1•4 years ago
|
||
It'll fail to join them when its utility methods actually join them.
However, it should be considered earlier timing because the preparation
DOM tree changes before joining them causes creating odd tree (see the
removed cases of the test). Therefore, we should make them stop handling
deletion before modifying the DOM tree.
Depends on D89579
Comment 3•4 years ago
|
||
bugherder |
Description
•