MCPcopy Index your code
hub / github.com/devgutt/wdr-render-basic / createElementDoc

Function createElementDoc

src/Elements.js:33–41  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

31}
32
33function createElementDoc(type) {
34 switch (type) {
35 case 'svg':
36 case 'path':
37 return document.createElementNS("http://www.w3.org/2000/svg", type);
38 default:
39 return document.createElement(type);
40 }
41}
42
43function appendElement(parent, children) {
44 if (Array.isArray(children)) {

Callers 1

createElementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected