Open
Bug 1178676
Opened 9 years ago
Updated 2 years ago
Selection.selectAllChildren() throws NS_ERROR_FAILURE exception if called in mousedown handler and current selection is in a contenteditable
Categories
(Core :: DOM: Selection, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: duanyao.ustc, Unassigned)
Details
Attachments
(1 file)
540 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Build ID: 20150511103818 Steps to reproduce: 1. Call Selection.selectAllChildren() in a mousedown event handler. 2. Select some text in a contenteditable element. 3. Trigger a mousedown event by mouse. You can use the attachment to reproduce. Actual results: NS_ERROR_FAILURE exception is thrown from Selection.selectAllChildren() Expected results: No exception should be thrown, selectAllChildren() should work as normal.
Comment 1•6 years ago
|
||
Chrome is able to handle this fine. I came across this as hterm runs into the same problem.
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•