Consider proposing a standard for filling parts of a single value into multiple inputs
Categories
(Toolkit :: Form Autofill, task, P3)
Tracking
()
People
(Reporter: saschanaz, Unassigned)
References
Details
Per my understanding, bug 1688607 added the behavior that fills each 4-digit value to the corresponding boxes:
<!DOCTYPE html>
<meta charset="utf-8">
<input autocomplete="cc-number"> <!-- This gets the first 4 digits -->
<input autocomplete="cc-number"> <!-- This gets the second 4 digits -->
<input autocomplete="cc-number"> <!-- This gets the third 4 digits -->
<input autocomplete="cc-number"> <!-- This gets the last 4 digits -->
But AFAICT the HTML spec doesn't describe such behavior, and neither of Safari and Chrome does it. If this is the webpage expectation in the wild, we should add the spec to get better interop (so that other webpages can start using cc-number the same way).
| Reporter | ||
Updated•2 years ago
|
Comment 1•2 years ago
|
||
The severity field is not set for this bug.
:serg, could you have a look please?
For more information, please visit BugBot documentation.
Updated•2 years ago
|
Comment 2•2 years ago
|
||
We can think of more general rule like "fill parts of the single value into multiple (similar adjacent) inputs"
<input autocomplete="cc-number"> <!-- This gets the first 4 digits -->
<input autocomplete="cc-number"> <!-- This gets the second 4 digits -->
<input autocomplete="cc-number"> <!-- This gets the third 4 digits -->
<input autocomplete="cc-number"> <!-- This gets the last 4 digits -->
or
<input autocomplete="cc-number 0:4"> <!-- This gets the first 4 digits -->
<input autocomplete="cc-number 4:4"> <!-- This gets the second 4 digits -->
<input autocomplete="cc-number 8:4"> <!-- This gets the third 4 digits -->
<input autocomplete="cc-number range-12:4"> <!-- This gets the last 4 digits -->
with generic range-start,count or start:count if we want to provide more hints to correctly autofill.
Obviously, this requires some exploration and thinking first :)
Description
•