()
| 62 | } |
| 63 | |
| 64 | function shouldUseActiveX () { |
| 65 | var useActiveX = false |
| 66 | |
| 67 | try { |
| 68 | document.implementation.createHTMLDocument('').open() |
| 69 | } catch (e) { |
| 70 | if (window.ActiveXObject) useActiveX = true |
| 71 | } |
| 72 | |
| 73 | return useActiveX |
| 74 | } |
| 75 | |
| 76 | module.exports = canParseHtmlNatively() ? _window.DOMParser : createHtmlParser() |