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

Possibly missing lowercasing step for autocomplete attribute #11036

Open
devgianlu opened this issue Feb 17, 2025 · 1 comment
Open

Possibly missing lowercasing step for autocomplete attribute #11036

devgianlu opened this issue Feb 17, 2025 · 1 comment

Comments

@devgianlu
Copy link

What is the issue with the HTML Standard?

While implementing support for the autocomplete attribute on form associated elements I stumbled upon a possible issue: the WPT tests assume that the field value will be transformed to be lowercase, but I could not see where it is explictly stated. All I can see is that the comparisons should be case insensitive. It seems to work fine if at step 15 I also perform lowercasing.

Spec: https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill-processing-model
WPT test: https://github.com/web-platform-tests/wpt/blob/master/html/semantics/forms/the-form-element/form-autocomplete.html
Implementation PR: LadybirdBrowser/ladybird#3517

@annevk
Copy link
Member

annevk commented Feb 17, 2025

Yeah, that seems like a bug.

cc @whatwg/forms

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

No branches or pull requests

2 participants