MCPcopy Index your code
hub / github.com/hoothin/UserScripts / createHTML

Function createHTML

Picviewer CE+/Picviewer CE+.user.js:12776–12781  ·  view source on GitHub ↗
(html)

Source from the content-addressed store, hash-verified

12774 return doc.body || doc.querySelector('body') || doc;
12775 }
12776 function createHTML(html){
12777 const fragment = document.createDocumentFragment();
12778 if (html === null || html === undefined || html === '') return fragment;
12779 parseHTMLToFragment(String(html), fragment, document);
12780 return fragment;
12781 }
12782 const SVG_NS = 'http://www.w3.org/2000/svg';
12783 const VOID_TAGS = {
12784 area: true,

Callers 1

setHTMLFunction · 0.70

Calls 1

parseHTMLToFragmentFunction · 0.70

Tested by

no test coverage detected