Skip to content

HTML input elements with type number should only be valid when a number is passed. #321

Description

@rbi

Currently the checkValidity() method on an input element of type number only checks the lower and the upper bound of the value that is passed. When something is passed that isn't a number at all checkValidity() returns true although it should return false.

I'll open a pull request that demonstrates the problem and suggests a fix in a minute.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions