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

Function create

test/neverland.js:685–687  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

683 }
684
685 function create(element) {
686 return element === FRAGMENT ? document.createDocumentFragment() : document.createElementNS('http://www.w3.org/1999/xhtml', element);
687 } // it could use createElementNS when hasNode is there
688 // but this fallback is equally fast and easier to maintain
689 // it is also battle tested already in all IE
690

Callers 3

neverland.jsFile · 0.70
createSVGFunction · 0.70
setFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected