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

Function createElement$1

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

setAttributeMethod · 0.45

Tested by

no test coverage detected