el.attributes.length is wrong in directive.(自定义指令中,el.attributes.length 与实际不符,el.attributes.length 总为0)
Version
3.2.12
Reproduction link
Steps to reproduce
// v-directive app.directive('test', { created(el, binding) { console.log('attributes.length:', el.attributes.length) // 0 } }) // test.vue
something
What is expected?
console.log(el.attributes.length) // 2
What is actually happening?
console.log(el.attributes.length) // 0