Skip to content

Suggestion: Allow adding maxcount to <input type="email/file" multiple> #11994

@ThomasLandauer

Description

@ThomasLandauer

What problem are you trying to solve?

For <input>s with multiple, it would be nice to apply a limit on the number of items.

What solutions exist today?

The maxlength attribute, but this only restricts the total number of characters. However, for email addresses, the more important aspect is how many.

How would you solve it?

<input maxcount="5">. The wording aligns nicely with existing maxlength.

Anything else?

There is a related issue for <input type="file">, but it focuses more on the number of bytes: #4923

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions