events: {
DOMContentLoaded: function onDOMContentLoaded(event) {
let doc = event.originalTarget;
- if (doc instanceof HTMLDocument)
+ if (doc instanceof Ci.nsIDOMHTMLDocument)
this._triggerLoadAutocmd("DOMLoad", doc);
},
if (doc instanceof Document)
dactyl.initDocument(doc);
- if (doc instanceof HTMLDocument) {
+ if (doc instanceof Ci.nsIDOMHTMLDocument) {
if (doc.defaultView.frameElement) {
// document is part of a frameset
if (dactyl.forceTarget in openModes)
mode = openModes[dactyl.forceTarget];
- CommandExMode().open(mode + "open " + (args || ""))
+ CommandExMode().open(mode + "open " + (args || ""));
}
function decode(uri) util.losslessDecodeURI(uri)
}
});
-// vim: set fdm=marker sw=4 ts=4 et:
+// vim: set fdm=marker sw=4 sts=4 ts=8 et: