Skip to content

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

@rbi

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.

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