mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 848660 - Fix Gaia selector. r=fabrice
This commit is contained in:
parent
ac32b89da6
commit
4f9e65513c
@ -594,7 +594,7 @@ function getSelectionRange(element) {
|
||||
// Get the selection range of <input> and <textarea> elements
|
||||
start = element.selectionStart;
|
||||
end = element.selectionEnd;
|
||||
} else {
|
||||
} else if (isContentEditable(element)){
|
||||
// Get the selection range of contenteditable elements
|
||||
let win = element.ownerDocument.defaultView;
|
||||
let sel = win.getSelection();
|
||||
|
Loading…
Reference in New Issue
Block a user