invalid value attribute being removed when invalid

Fixed Issue #7698940


Adam J.
May 26, 2016
This issue is public.
Found in
  • Microsoft Edge
  • Internet Explorer
Found in build #
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

This is a difference in implementation between IE Edge (and 11) and other modern browsers regarding the value attribute of input elements which can contain only a restricted set values (type="number" for instance)

For the following HTML:

<input type="number" value="{{template_placeholder}}">

every browser other than IE11/Edge has a DOM tree element of

<input type="number" value="{{template_placeholder}}">

while IE11/Edge has:

<input type="number" value="">

Both IE11/Edge and all other modern browsers render an empty number input to the screen, but IE11/Edge strips the value attribute because it has determine it to be invalid.

With the recent rise of JS templating frameworks, it’s rather annoying the IE11/Edge does this. While not incorrect (or correct) according to the spec, the difference in implementation between IE11/Edge and other browsers is bothersome.

Inspect the input element in the following JSFiddle in IE 11/Edge and any other modern browser:


0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Ibrahim O.”

      Changed Assigned To to “Travis L.”

      Changed Status to “Fixed”

    • This issue should be fixed in our most recent Insider previews.

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

    Sign in