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

fix(autocomplete-valid): incomplete for invalid but safe values #4500

Merged
merged 7 commits into from
Jun 20, 2024

Conversation

gaiety-deque
Copy link
Contributor

Resolves #4492

incomplete's some invalid, but safe to use, values for autocomplete. The common mistake in the original issue was autocomplete="text" and I've added a few more I'd expect to see.

Open to suggestions for more, or removing some of the ones below.



There are other ways to determine usage, GitHub is only one platform code is hosted for example. But it's a way to get a quick view into what's out there in production.

@gaiety-deque gaiety-deque marked this pull request as ready for review June 11, 2024 18:56
@gaiety-deque gaiety-deque requested a review from a team as a code owner June 11, 2024 18:56
Copy link
Contributor

@WilcoFiers WilcoFiers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work. Couple small suggestions for improvement.

lib/commons/text/is-valid-autocomplete.js Outdated Show resolved Hide resolved
lib/checks/forms/autocomplete-valid.json Outdated Show resolved Hide resolved
"fail": "The autocomplete attribute is incorrectly formatted"
"pass": "the autocomplete attribute is correctly formatted",
"fail": "the autocomplete attribute is incorrectly formatted",
"incomplete": "the autocomplete attribute has a non-standard value. Check whether any standard value could be used instead."
Copy link
Contributor

@straker straker Jun 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I struggled to understand what the meaning of this message was suppose to be from the recent suggestion. I hope this clarifies it but we can discuss if you want this changed @WilcoFiers

@@ -5,7 +5,8 @@
"impact": "serious",
"messages": {
"pass": "the autocomplete attribute is correctly formatted",
"fail": "the autocomplete attribute is incorrectly formatted"
"fail": "the autocomplete attribute is incorrectly formatted",
"incomplete": "check that this invalid autocomplete attribute does not necessary for accessibility"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"incomplete": "check that this invalid autocomplete attribute does not necessary for accessibility"
"incomplete": "check that this unknown autocomplete attribute does not necessary for accessibility"

@WilcoFiers WilcoFiers merged commit e31a974 into develop Jun 20, 2024
21 checks passed
@WilcoFiers WilcoFiers deleted the autocomplete-valid-incompletes branch June 20, 2024 11:19
WilcoFiers added a commit that referenced this pull request Jul 29, 2024
##
[4.10.0](v4.9.1...v4.10.0)
(2024-07-29)

### Features

- **new-rule:** summary elements must have an accessible name
([#4511](#4511))
([0d8a99e](0d8a99e)),
closes [#4510](#4510)

### Bug Fixes

- **all-rules:** fix flakey all-rules firefox test
([#4467](#4467))
([3f13aa1](3f13aa1))
- **aria-allowed-attr:** allow aria-multiline=false for element with
contenteditable
([#4537](#4537))
([f019068](f019068))
- **aria-allowed-attr:** allow aria-required=false when normally not
allowed ([#4532](#4532))
([2e242e1](2e242e1))
- **aria-prohibited-attr:** allow aria-label/ledby on decendants of
widget ([#4541](#4541))
([07c5d91](07c5d91))
- **aria-roledescription:** keep disabled with { runOnly: 'wcag2a' }
([#4526](#4526))
([5b4cb9d](5b4cb9d)),
closes [#4523](#4523)
- **autocomplete-valid:** incomplete for invalid but safe values
([#4500](#4500))
([e31a974](e31a974)),
closes [#4492](#4492)
- **build:** limit locales to valid files when using the --all-lang
option ([#4486](#4486))
([d3db593](d3db593)),
closes [#4485](#4485)
- colorio.js patch mocking CSS
([#4456](#4456))
([3ef9353](3ef9353)),
closes [#4400](#4400)
- correct typos in texts
([#4499](#4499))
([11fad59](11fad59))
- **landmark-unique:** follow spec, aside -> landmark
([#4469](#4469))
([e32f803](e32f803)),
closes [#4460](#4460)
- **required-attr:** allow aria-valuetext on slider instead of valuenow
([#4518](#4518))
([135898b](135898b)),
closes [#4515](#4515)

This PR was opened by a robot 🤖 🎉
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

autocomplete-valid (SC 1.3.5) triggers error for autocomplete="text"
3 participants