Allow empty attributes

Pretty simple one. Attributes require that you include a value. For example if you wanted to autoplay you have to do autoplay="true" . This doesn't matter to much as it's still accepted.

The issue is if you want to use Vue / Petite Vue / Alpine JS inside of Webflow for interactivity, you can't use things like v-else because you have to do v-else="true" which isn't valid. Same goes for v-cloak which you have to apply as v-cloak="true" which isn't valid and breaks.

It makes no sense to require attribute value as in many cases just a name is fine, it also makes Webflow less flexible as you aren't able to use Vue in it's full potential.

Seems like a really easy fix and hope to see it soon.

  • Tom Smedley
  • Jul 9 2021
  • Shipped
  • Mar 15, 2023

    Admin response

    The ability to leave an attribute's value empty is possible and will publish as attribute="".

  • Wall Plus commented
    June 13, 2022 06:41

    I concur! The "Please fill out this field." message on search elements should be easily turned off by adding a nonvalidate attribute.

  • +2