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

Function transformNode

static/vuejs/vue.esm.js:9099–9120  ·  view source on GitHub ↗
(el, options)

Source from the content-addressed store, hash-verified

9097/* */
9098
9099function transformNode (el, options) {
9100 var warn = options.warn || baseWarn;
9101 var staticClass = getAndRemoveAttr(el, 'class');
9102 if (process.env.NODE_ENV !== 'production' && staticClass) {
9103 var expression = parseText(staticClass, options.delimiters);
9104 if (expression) {
9105 warn(
9106 "class=\"" + staticClass + "\": " +
9107 'Interpolation inside attributes has been removed. ' +
9108 'Use v-bind or the colon shorthand instead. For example, ' +
9109 'instead of <div class="{{ val }}">, use <div :class="val">.'
9110 );
9111 }
9112 }
9113 if (staticClass) {
9114 el.staticClass = JSON.stringify(staticClass);
9115 }
9116 var classBinding = getBindingAttr(el, 'class', false /* getStatic */);
9117 if (classBinding) {
9118 el.classBinding = classBinding;
9119 }
9120}
9121
9122function genData$1 (el) {
9123 var data = '';

Callers

nothing calls this directly

Calls 4

getAndRemoveAttrFunction · 0.70
parseTextFunction · 0.70
getBindingAttrFunction · 0.70
warnFunction · 0.50

Tested by

no test coverage detected