Bug 861592 - Make isContentEditable() in form.js not fail with null elements r=ttaubert

This commit is contained in:
Fabrice Desré 2013-04-13 23:50:53 -07:00
parent 7b19d6e3ba
commit 5550075124

View File

@ -490,6 +490,10 @@ let FormAssistant = {
FormAssistant.init();
function isContentEditable(element) {
if (!element) {
return false;
}
if (element.isContentEditable || element.designMode == "on")
return true;