Open Bug 1453893 Opened 3 years ago Updated 3 years ago
.extend() does not work on an element that has contenteditable="false"
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36 Steps to reproduce: In Firefox, if there is an element that has contenteditable = 'false', when selection.extend() is called on it, a NS_ERROR_FAILURE is thrown in the console. And the highlighting is not visible due to the fact that it is built using selection.extend() - this is the case for Chrome, which works perfectly. Expected results: Selection.extend() should work exactly how it does on an element with contenteditable"true" and the highlighting should be visible
You need to log in before you can comment on or make changes to this bug.