Skip to content

autocomplete on input (the only element affected?) renders when false is passed, but no other attribute does this? #21344

@NullVoxPopuli

Description

@NullVoxPopuli

🐞 Describe the Bug

<template>
  
  Theese all render the attribute - any string value, or truthy value renders the attribute.
  Here we defer to HTML for what behavior is. But strictly speaking of attribute rendering.
  <div aria-hidden="{{true}}"></div>
  <div aria-hidden={{true}}></div>
  <div aria-hidden={{""}}></div>
  <div aria-hidden></div>
  <div aria-hidden=""></div>
  <div aria-hidden="true"></div>
  <div aria-hidden="false"></div>

  These do not render the attribute
  <div aria-hidden={{false}}></div>
  <div aria-hidden={{null}}></div>
  <div aria-hidden={{undefined}}></div>

  autocomplete, specifically - behavior is different from above.
  attribute is rendered. 
  I would consider this a bug.
  <input autocomplete={{false}}>
  Attribute comes back, seems specific to autocomplete?
  <input hidden={{false}}>

</template>

https://limber.glimdown.com/edit?c=DwFwpgtgDgNghuAfAKAASragKgCzGAZzFThhlQCcwA7AEzAtRDxJBAoEsAjAV3FQC0JagE9UBdh2oBzVADdSPMABpUAe0bs%2BOMQphLKNehQJMWCSb3AA6TAAkGxAO7F6AMwZM1qO1gCyADKobhqoTjgIqFxgEXIcoRwE1qgAQnzikgDGIDBiBFBgcADWUrJqbqyWfMRUdAyltujAtBxyJJxwAjgctPTUALwARADew1pgAL4Tg4jAAPQtcihNi%2B0cnd29NP2j41OzC63LqM2taxs9fTvDg4P784vHp21wHV2XNAePmM-n71sDW5fI4-Vavdb-K6DcYzB4glZncEXAFDNykIiww5LZCYXCEVzeahqECGOqacxsThWMCgxFvTZXUZomBEe5Yp5g%2BkfAajag8Mhs74Il5clGjHh1NxSMC0QUgzBwPhqTJqaAwMDgVT5MCZDhSzKkXKCKIxOBxBKmFpuDy1EluCiqkhcNRyMCNSpU6qoRKk4wy5KYACSYTU-NoqBV1AIPU8zB9cCiPGk7uAUig6UVIGVqtgGrA12ZrImxwAgpTuF6VRBCFE4Jkilr8BBTNrdfqvCQlVXc%2BAAPw-NPpBnbJnoybFnHzcBqhBgRBAA&format=gjs

Ember 7.1 alpha.2

  • OS: -
  • Browser: -

➕ Additional Context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions