Open Bug 1864395 Opened 2 years ago Updated 2 years ago

Consider proposing a standard for filling parts of a single value into multiple inputs

Categories

(Toolkit :: Form Autofill, task, P3)

task

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).

The severity field is not set for this bug.
:serg, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(sgalich)
Severity: -- → S3
Type: defect → task
Flags: needinfo?(sgalich)
Priority: -- → P3

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 :)

Summary: Possibly-nonstandard behavior of duplicated 4 cc-number boxes on Firefox → Consider proposing a standard for filling parts of a single value into multiple inputs
See Also: → 1876347
You need to log in before you can comment on or make changes to this bug.