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

Function createElement$1

static/vuejs/vue.runtime.esm.js:4377–4387  ·  view source on GitHub ↗
(tagName, vnode)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

setAttributeMethod · 0.45

Tested by

no test coverage detected