diff --git a/src/html-parser.js b/src/html-parser.js index 2fa78e2f..de01586e 100644 --- a/src/html-parser.js +++ b/src/html-parser.js @@ -60,7 +60,7 @@ function shouldUseActiveX () { try { document.implementation.createHTMLDocument('').open() } catch (e) { - if (window.ActiveXObject) useActiveX = true + if (root.ActiveXObject) useActiveX = true } return useActiveX }