MCPcopy Create free account
hub / github.com/TruthHun/BookStack / shouldUseActiveX

Function shouldUseActiveX

static/to-markdown/lib/html-parser.js:64–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62}
63
64function 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
76module.exports = canParseHtmlNatively() ? _window.DOMParser : createHtmlParser()

Callers 1

createHtmlParserFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected