diff --git a/www/pad/export.js b/www/pad/export.js index 2bc54a430..263593a54 100644 --- a/www/pad/export.js +++ b/www/pad/export.js @@ -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 {