`Document.execCommand` does not work with clicking button without managing `Selection` because clicking button moves `Selection` outside the editing host
Categories
(Core :: DOM: Selection, defect, P5)
Tracking
()
People
(Reporter: regis.gaughan, Unassigned)
Details
Comment 3•4 years ago
|
||
Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority.
If you have reason to believe this is wrong (especially for the severity), please write a comment and ni :jstutte.
Comment 4•2 years ago
|
||
Currently, Document.execCommand
never throws exceptions if it's an HTML/XHTML document. However, the testcase sill won't work because the testcase does not manage Selection
by itself. Gecko moves Selection
when user clicks a button, but Blink does not. And Blink tries to update somewhere if Selection
is not in the editing host. E.g., you can check it with adding 2 lines, putting caret into the second line, and clicking outside the editing host before clicking a button. Then, you see the first line is always updated rather than last selected line in the editing host.
Once Gecko's selection handling is changed, the testcase will work in some cases, but it's not always expected result for users.
Description
•