Skip to content

Correction: <input type="url"> does not support the 'multiple' attribute #42005

@asell22

Description

@asell22

MDN URL

https://developer.mozilla.org/en-US/docs/Web/HTML/Guides/Constraint_validation

What specific section or headline is this issue about?

Semantic input types

What information was incorrect, unhelpful, or incomplete?

The documentation currently states:
"For both of these input types [URL and email], if the multiple attribute is set, several values can be set..."

However, the HTML Standard only supports the multiple attribute on these input types: <input type="email"> and <input type="file">. It is not a valid attribute for <input type="url">.

What did you expect to see?

Update the text to clarify that the behavior regarding the multiple attribute and comma-separated lists applies only to the email input type, not the URL input type.

Do you have any supporting links, references, or citations?

There is an internal inconsistency in the MDN docs: the specific documentation page for <input type="url"> omits multiple from its list of attributes.

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/multiple

https://html.spec.whatwg.org/multipage/input.html#url-state-(type=url)

Do you have anything more you want to share?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Content:HTMLHypertext Markup Language docsaccepting PRFeel free to open a PR to resolve this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions