input with type="number" allows alphabetic characters

Confirmed Issue #10792541 • Assigned to Bogdan B.

Details

Author
Dirk v.
Created
Feb 3, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
38.14393
Reports
Reported by 4 people

Sign in to watch or report this issue.

Steps to reproduce

An input with type="number" should only alllow numbers, but typing in alphabetic characters seems to work.

expected behaviour: Alphabetic characters shouldn’t be allowed
current behaviour: Alphabetic characters can be put into number input fields
steps to reproduce: http://codepen.io/anon/pen/wgjyXd

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Status to “Confirmed”

      Changed Assigned To to “Brad E.”

    • http://w3c.github.io/html-reference/input.number.html
      http://w3c.github.io/html-reference/datatypes.html#common.data.float

      Strange, they wrote “value = floating-point number” but define "attribute DOMString defaultValue; attribute DOMString value;". This make no sense for me.
      I would expect float or double:
      attribute double defaultValue;
      attribute double value;

    • Microsoft Edge Team

      Changed Assigned To from “Brad E.” to “James M.”

      Changed Assigned To to “Bogdan B.”

    You need to sign in to your Microsoft account to add a comment.

    Sign in