diff --git a/common/content/dactyl.js b/common/content/dactyl.js index f7e430d6..ba6e1655 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -852,7 +852,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { click: function onClick(event) { let elem = event.originalTarget; - if (elem instanceof Element && services.security.isSystemPrincipal(elem.nodePrincipal)) { + if (elem instanceof Ci.nsIDOMElement && services.security.isSystemPrincipal(elem.nodePrincipal)) { let command = elem.getAttributeNS(NS, "command"); if (command && event.button == 0) { event.preventDefault();