MCPcopy Create free account
hub / github.com/TruthHun/BookStack / createElement$1

Function createElement$1

static/vuejs/vue.runtime.common.js:4379–4389  ·  view source on GitHub ↗
(tagName, vnode)

Source from the content-addressed store, hash-verified

4377/* */
4378
4379function createElement$1 (tagName, vnode) {
4380 var elm = document.createElement(tagName);
4381 if (tagName !== 'select') {
4382 return elm
4383 }
4384 // false or null will remove the attribute but undefined will not
4385 if (vnode.data && vnode.data.attrs && vnode.data.attrs.multiple !== undefined) {
4386 elm.setAttribute('multiple', 'multiple');
4387 }
4388 return elm
4389}
4390
4391function createElementNS (namespace, tagName) {
4392 return document.createElementNS(namespaceMap[namespace], tagName)

Callers

nothing calls this directly

Calls 1

setAttributeMethod · 0.45

Tested by

no test coverage detected