Open
Description
Version
2.6.11
Reproduction link
https://jsfiddle.net/andrewharvey4/k6r3uzby/10/
Steps to reproduce
v-bind an object with a empty string key
What is expected?
vue not to crash, it to either be silently ignored or a warning but not a fatal error
What is actually happening?
an error is thown crashing the app
vue.js:4483 Uncaught DOMException: Failed to execute 'setAttribute' on 'Element': '' is not a valid attribute name.
at baseSetAttr (https://unpkg.com/vue@2.6.11/dist/vue.js:6778:10)
at setAttr (https://unpkg.com/vue@2.6.11/dist/vue.js:6753:7)
at Array.updateAttrs (https://unpkg.com/vue@2.6.11/dist/vue.js:6708:9)
at invokeCreateHooks (https://unpkg.com/vue@2.6.11/dist/vue.js:6064:24)
at initComponent (https://unpkg.com/vue@2.6.11/dist/vue.js:5997:9)
at createComponent (https://unpkg.com/vue@2.6.11/dist/vue.js:5980:11)
at createElm (https://unpkg.com/vue@2.6.11/dist/vue.js:5920:11)
at createChildren (https://unpkg.com/vue@2.6.11/dist/vue.js:6048:11)
at createElm (https://unpkg.com/vue@2.6.11/dist/vue.js:5949:11)
at Vue.patch [as __patch__] (https://unpkg.com/vue@2.6.11/dist/vue.js:6509:11)