Static GitHub Issues

[3173] Very weird issue with Boolean attribute "itemscope"

prev: Nuxt.js auto completion in Vetur
next: Cant install nuxt-edge

Version

v1.4.0

Reproduction link

https://jsfiddle.net/u01vm19q/2/

Steps to reproduce

<div :itemscope="''"> Lorem</div> or <div itemscope> Lorem</div> or <div :itemscope="true"> Lorem</div> 

What is expected ?

<div itemscope> Lorem</div>

What is actually happening?

<div itemscope="itemscope"> Lorem</div>

Additional comments?

And with other custom tags behavior is another. for example <div :trololo="''"> Lorem</div> will go to <div trololo> Lorem</div>

"itemscope" is an important boolean microdata tag, how to fix that?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This bug report is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c6822">#c6822</a>)</em></sub></div>