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

Function transformNode$1

static/vuejs/vue.common.js:9143–9166  ·  view source on GitHub ↗
(el, options)

Source from the content-addressed store, hash-verified

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