mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
Bug 941367 - Fix JavaScript assertions in dom/inputmethod/forms.js caused by trying to get the selection of non-text controls. r=fabrice
--HG-- extra : rebase_source : eb9b497bb81e165bac9c128b888e2ddbfcb1b02f
This commit is contained in:
parent
f7eb2192f7
commit
0d53fff241
@ -762,8 +762,9 @@ function isPlainTextField(element) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return element instanceof HTMLInputElement ||
|
||||
element instanceof HTMLTextAreaElement;
|
||||
return element instanceof HTMLTextAreaElement ||
|
||||
(element instanceof HTMLInputElement &&
|
||||
element.mozIsTextField(false));
|
||||
}
|
||||
|
||||
function getJSON(element, focusCounter) {
|
||||
|
Loading…
Reference in New Issue
Block a user