Chrome has rolled out a change to number inputs that is causing this error in my tests
Uncaught InvalidStateError: Failed to read the 'selectionStart' property from 'HTMLInputElement': The input element's type ('number') does not support selection
I want to understand why should a number/email input not be select-able (sic)?
Because the standard defines so. http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
We have no ways to get precise display values of type=email and type=number because of IDNA, value sanitization, and localization. So setting/getting selection information makes no sense.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With