MCPcopy Create free account
hub / github.com/TruthHun/BookStack / checkRootConstraints

Function checkRootConstraints

static/vuejs/vue.js:7802–7817  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

7800 }
7801
7802 function checkRootConstraints (el) {
7803 {
7804 if (el.tag === 'slot' || el.tag === 'template') {
7805 warnOnce(
7806 "Cannot use <" + (el.tag) + "> as component root element because it may " +
7807 'contain multiple nodes.'
7808 );
7809 }
7810 if (el.attrsMap.hasOwnProperty('v-for')) {
7811 warnOnce(
7812 'Cannot use v-for on stateful component root element because ' +
7813 'it renders multiple elements.'
7814 );
7815 }
7816 }
7817 }
7818
7819 // tree management
7820 if (!root) {

Callers 1

parseFunction · 0.70

Calls 1

warnOnceFunction · 0.70

Tested by

no test coverage detected