html5 - W3C validation error for input type=date -


<input type="date" max="1995-12-31" class="form-control" id="dob"/> 

when try validate w3c got error line:

the date input type not supported in browsers. please sure test, , consider using polyfill.

how solve it?

maintainer of w3c html checker (validator) here. message warning message, not error. , reason have html checker emit warning is, input type=date isn’t supported in desktop safari or internet explorer, nor in versions of firefox before firefox 57, nor on android before android 4.4.

for exact details browser support, see https://caniuse.com/#search=date

so warning’s purpose give heads-up document has feature doesn’t work specified users of internet explorer, safari, , older versions of firefox , android.

that’s why warning mentions consider using polyfill—in order ensure feature works users expected.

to make input type=date work in browsers, can choose among many available polyfills:


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -