Bug 848660 - Fix Gaia selector. r=fabrice

This commit is contained in:
Yuan Xulei 2013-03-08 23:14:16 -05:00
parent ac32b89da6
commit 4f9e65513c

View File

@ -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();