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

Function transformNode$1

static/vuejs/vue.js:9137–9160  ·  view source on GitHub ↗
(el, options)

Source from the content-addressed store, hash-verified

9135/* */
9136
9137function transformNode$1 (el, options) {
9138 var warn = options.warn || baseWarn;
9139 var staticStyle = getAndRemoveAttr(el, 'style');
9140 if (staticStyle) {
9141 /* istanbul ignore if */
9142 {
9143 var expression = parseText(staticStyle, options.delimiters);
9144 if (expression) {
9145 warn(
9146 "style=\"" + staticStyle + "\": " +
9147 'Interpolation inside attributes has been removed. ' +
9148 'Use v-bind or the colon shorthand instead. For example, ' +
9149 'instead of <div style="{{ val }}">, use <div :style="val">.'
9150 );
9151 }
9152 }
9153 el.staticStyle = JSON.stringify(parseStyleText(staticStyle));
9154 }
9155
9156 var styleBinding = getBindingAttr(el, 'style', false /* getStatic */);
9157 if (styleBinding) {
9158 el.styleBinding = styleBinding;
9159 }
9160}
9161
9162function genData$2 (el) {
9163 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