-
Notifications
You must be signed in to change notification settings - Fork 784
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-appropriate): pass for autocomplete=username and type=email #2896
fix(autocomplete-appropriate): pass for autocomplete=username and type=email #2896
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the pr! Added a suggestion that should hopefully help fix the tests.
@@ -12,6 +12,7 @@ function autocompleteAppropriateEvaluate(node, options, virtualNode) { | |||
const allowedTypesMap = { | |||
bday: ['text', 'search', 'date'], | |||
email: ['text', 'search', 'email'], | |||
username: ['email'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe to fix the test we'll need this to also include text
and probably search
. Otherwise it's restricted to just type=email
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah! That makes sense, thanks for the hint. :)
Sorry one last thing. Could you add an integration test for the new combination? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Reviewed for security |
…e=email (#2896) * allow type=email autocomplete=username * also add text and search * add integration test
Per issue #2727, allow the
autocomplete-appropriate
rule to pass for an input like<input type='email' autocomplete='username' >
Also fixes spacing in the name of a test for autocomplete-valid.
Closes issue: #2727