HTML5 Constraint Validation is broken in IE11 for input[type=number]

Fixed Issue #107765

Details

Created
Apr 27, 2014
Privacy
This issue is public.
Found in build #
0.0011
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

URL = http://plnkr.co/edit/uqOkCPxNYQWg8xog1IKi?p=preview

URL:

Repro Steps:

==============

There is a reproduction of this problem at https://github.com/angular/angular.js/issues/7070, where the issue was reported to us, along with some additional details for reproducing.

The test case is at http://plnkr.co/edit/uqOkCPxNYQWg8xog1IKi?p=preview

Set a breakpoint in script angular.js, at line 17084.

Follow the reproduction steps in the github issue:


"ddd" validates to true (not OK)

"ddd3" validates to true (not OK)

"3ddd" validates to false 

"33" validates to true

In the debugger, inspect the validity state of the input element. Its validity state is incorrect. The badInput flag should be set to true when the element is suffering from bad input (such as the first two cases in the reproduction list), with the validity flag set to false.

Expected Results:

==============

When the input[type=number] control is suffering from bad input, per the definition in the WHATWG’s specification, it should set the value of the ValidityState’s “badInput” property to true, and the “valid” property to false.

Actual Results:

==============

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “IPBS P.”

      Changed Assigned To from “IPBS P.” to “Bruce M.”

      Changed Assigned To to “Kamen M.”

      Changed Assigned To from “Kamen M.” to “Rossen A.”

      Changed Steps to Reproduce

      Changed Assigned To from “Rossen A.” to “Jonathan H.”

      Changed Status to “Confirmed”

      Changed Status from “Confirmed” to “In progress”

      Changed Status from “In progress” to “In code review”

      Changed Status from “In code review” to “In progress”

      Changed Status from “In progress” to “In code review”

      Changed Status from “In code review” to “In progress”

      Changed Assigned To from “Jonathan H.” to “IPBS P.”

      Changed Status from “In progress” to “Fixed”

      Changed Assigned To from “IPBS P.” to “Rossen A.”

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

    Sign in