-
Notifications
You must be signed in to change notification settings - Fork 134
Open
Labels
Description
<script src="nodep-date-input-polyfill.dist.js"></script>
<form>
<input type=date required id=x>
<button type=button
onclick="alert(document.getElementById('x').checkValidity())">Submit</button>
</form>
In IE 11, when I pick a date using the polyfill’s picker and click Submit, I get “false”.
If I type something manually into the input and click Submit, I get “true”.
In Firefox, I get “true”.
It seems like IE’s constraint validation doesn’t care if you set the value attribute, only if you set the value property, which the polyfill overrides.