valueAsNumber property reports NaN for numbers in IE11 and Edge

Issue #669685 • Assigned to Travis L.

Details

Created
Aug 4, 2014
Privacy
This issue is public.
Reports
Reported by 6 people

Sign in to watch or report this issue.

Steps to reproduce

Fiddhttp://jsfiddle.net/vWzL6/1/](http://jsfiddle.[http://jsfiddle.net/vWzL6/1/](http://jsfiddle.net/vWzL6/1/)

  1. Create a input[type=number] and set value to a number
  2. Retrieve number value via el.valueAsNumber
  3. Observe that NaN is always returned

No Repro in Firefox
No Repro in Chrome

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Kamen M.”

      Changed Assigned To to “ChakraTriage”

      Changed Assigned To from “ChakraTriage” to “Brahma G.”

      Changed Assigned To from “Brahma G.” to “Ed M.”

      Changed Assigned To to “Travis L.”

      Changed Assigned To from “Travis L.” to “Jonathan S.”

      Changed Status to “Won’t fix”

      Changed Status from “Won’t fix” to “Fixed”

      Changed Status from “Fixed” to “Won’t fix”

      Changed Assigned To to “Christian F.”

      Changed Status from “Won’t fix”

      Changed Status to “Confirmed”

      Changed Assigned To from “Christian F.” to “Jonathan S.”

      Changed Status from “Confirmed” to “Won’t fix”

      Changed Assigned To to “Bogdan B.”

      Changed Assigned To to “Matt R.”

      Changed Status from “Won’t fix”

      Changed Assigned To to “Travis L.”

    • Still broken. Please change the title to include Edge or it may be being overlooked.
      Thanks

      Microsoft Edge 40.15063.0.0
      Microsoft EdgeHTML 15.15063

    • Who can edit the title? I think this is automatically moved from Connect thus has no issue author.

    • Microsoft Edge Team

      Changed Title from “valueAsNumber property reports NaN for numbers in IE11” to “valueAsNumber property reports NaN for numbers in IE11 and Edge”

    • Please note that setting valueAsNumber always yields an InvalidStateError. The upside is that it can be used for detection of this bug.

      See also this jsfiddle: https://jsfiddle.net/9n0enmn6/

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

    Sign in