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

Function shouldUseActiveX

static/word2md/turndown.js:552–560  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

550}
551
552function shouldUseActiveX () {
553 var useActiveX = false;
554 try {
555 document.implementation.createHTMLDocument('').open();
556 } catch (e) {
557 if (window.ActiveXObject) useActiveX = true;
558 }
559 return useActiveX
560}
561
562var HTMLParser = canParseHTMLNatively() ? root.DOMParser : createHTMLParser();
563

Callers 1

createHTMLParserFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected