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

Function transformNode$1

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

Source from the content-addressed store, hash-verified

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