Vue: Why was "Vue.config.prefix" removed?

Created on 29 Feb 2016  ·  3Comments  ·  Source: vuejs/vue

Is there a reason why was "Vue.config.prefix" removed? Performance issues?
In order to have our html W3C compliant, we could set it like this:
Vue.config.prefix = "data-v";
Or do you have a nice way to make it work?
Maybe using a jQuery selector that would change all "data-v-" by "v-" in the init event?
Any ideas?

All 3 comments

You could probably do so during the "beforeCompile" event, which is fired just before the element goes through Vue's compilation.

Vue directives are removed in the rendered markup, so your eventual markup will be W3C compliant.

This tips for « v- » is not anymore relevant « » for Windows phone and what yyx990803 said here « » is not relevant anymore too...

So, how I could use « data-v-* » instruction to keep « source » from server W3C Compliant in order to pass this tests for example : ?

EDIT : I just thinking if this « v-bind:class » syntax become « data-v-bind:class » that will not change the validation failure so... maybe « osef ».

Was this page helpful?
0 / 5 - 0 ratings

Related issues

paulpflug picture paulpflug  ·  3Comments

franciscolourenco picture franciscolourenco  ·  3Comments

bdedardel picture bdedardel  ·  3Comments

robertleeplummerjr picture robertleeplummerjr  ·  3Comments

wufeng87 picture wufeng87  ·  3Comments