Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is there only aria-autocomplete on button? why no autocomplete? #4633

Closed
softmarshmallow opened this issue Sep 20, 2021 · 4 comments
Closed

Comments

@softmarshmallow
Copy link

Version

3.2.12

Reproduction link

developer.mozilla.org

Steps to reproduce

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button

Make button component

<button
        autofocus
        aria-autocomplete=""
        disabled="false"
        form=""
        formaction=""
        formenctype=""
        formmethod=""
        formnovalidate
        name=""
        type=""
        value=""
        >
  Vue Button attributes demo
</button>

What is expected?

Why is there no autocomplete attribute on vue? It's standard html, and other frameworks such as React supports it.

What is actually happening?

autocomplete attribute is not present

@LinusBorg
Copy link
Member

LinusBorg commented Sep 20, 2021

Why is there no autocomplete attribute on vue? It's standard html [...]

From the MDN page you linked to:

This attribute on a <button> is nonstandard and Firefox-specific.

Also I'd like to verify: you have an issue with this attribute being missing from the types here?

https://github.com/vuejs/vue-next/blob/e9c0694451ba15b53fc3e8c81940db627e9da9b2/packages/runtime-dom/types/jsx.d.ts#L344-L356

@Pentadome
Copy link
Contributor

Does the bug described on the MDN page affect Javascript frameworks?

@LinusBorg
Copy link
Member

What bug?

@yyx990803
Copy link
Member

There is no bug here - autocomplete on button is not valid, so it's not supported in the JSX typing. Despite typing, you still can render an autocomplete attribute on a button if you want, so I don't know what is expected here.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants