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

dynamic type attribute for <input> element causes false positive autocomplete A11y warning #8565

Closed
eltigerchino opened this issue May 7, 2023 · 1 comment · Fixed by #8567
Labels

Comments

@eltigerchino
Copy link
Member

Describe the bug

Using a dynamic type on an <input> element causes the false positive A11y warning when paired with the autocomplete="off" attribute. Similar report #8520 (comment)

Related to #8520

Reproduction

https://svelte.dev/repl/23816016ae244746962d5d674c0eedc7?version=3.59.0

Logs

A11y: The value 'off' is not supported by the attribute 'autocomplete' on element <input type="null"> (8:2)

System Info

System:
    OS: macOS 13.3.1
    CPU: (8) arm64 Apple M1 Pro
    Memory: 228.80 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.16.0 - ~/.nvm/versions/node/v18.16.0/bin/node
    npm: 9.5.1 - ~/.nvm/versions/node/v18.16.0/bin/npm
  Browsers:
    Chrome: 112.0.5615.137
    Chrome Canary: 115.0.5756.0
    Firefox: 112.0.2
    Firefox Developer Edition: 110.0
    Safari: 16.4
    Safari Technology Preview: 16.4
  npmPackages:
    svelte: ^3.59.0 => 3.59.0

Severity

annoyance

@eltigerchino eltigerchino changed the title dynamic type attribute for <input> element causes false positive A11y warning dynamic type attribute for <input> element causes false positive autocomplete A11y warning May 7, 2023
@WAKayser
Copy link

WAKayser commented May 8, 2023

Alternatively I have the reverse behavior.

<input type="password" autocomplete={autocomplete ?? 'off'} />

gives me the following error:

A11y: The value 'null' is not supported by the attribute 'autocomplete' on element <input type="password">(a11y-autocomplete-valid)

Which happens for me after the upgrade to svelte 3.59.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants