mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 861592 - Make isContentEditable() in form.js not fail with null elements r=ttaubert
This commit is contained in:
parent
7b19d6e3ba
commit
5550075124
@ -490,6 +490,10 @@ let FormAssistant = {
|
||||
FormAssistant.init();
|
||||
|
||||
function isContentEditable(element) {
|
||||
if (!element) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (element.isContentEditable || element.designMode == "on")
|
||||
return true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user