Merge branch 'staging' into cursor

This commit is contained in:
yflory
2018-11-12 11:51:17 +01:00
2 changed files with 7 additions and 1 deletions

View File

@@ -38,7 +38,7 @@ define([
module.main = function (userDoc, cb) {
var inner;
if (userDoc instanceof Element || userDoc instanceof HTMLElement) {
if (userDoc && userDoc.tagName) {
inner = userDoc;
} else {
try {