HTMLInputElement.prototype.valueAsDate polyfill
import "@mrhenry/core-web/modules/HTMLInputElement.prototype.valueAsDate";
browsers
-
Android Webview:<4.4
-
Blackberry:*
-
Chrome:<43
-
Firefox:*
-
Firefox Android:*
-
IE:>=9
-
IE Mobile:>=9
-
Opera:<12.1
-
Opera Android:<12.1
-
Opera Mini:*
-
Safari:>=10.1
-
iOS Safari:<4.0
-
Samsung Mobile:<4.0
notes
- Safari older than 10.1 does not allow re-defining 'HTMLInputElement.prototype.valueAsDate'.
- Browsers that do not support date|month|week|time also won't have type property support. This implies we have to look at the attribute of the element. Setting the property without updating the attribute will have unexpected behaviour.