MCPcopy Create free account
hub / github.com/WebReflection/neverland / create

Function create

index.js:717–719  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

715 }
716
717 function create(element) {
718 return element === FRAGMENT ? document.createDocumentFragment() : document.createElementNS('http://www.w3.org/1999/xhtml', element);
719 } // it could use createElementNS when hasNode is there
720 // but this fallback is equally fast and easier to maintain
721 // it is also battle tested already in all IE
722

Callers 5

index.jsFile · 0.70
createSVGFunction · 0.70
outerFunction · 0.70
createForFunction · 0.50
createForFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected