Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Modernizr detects supported input types: https://github.com/Modernizr/Modernizr/blob/master/feature-d...

It's basically just making an <input>, setting its @type and seeing if that sticks, then setting a known-invalid value and seeing if that sticks.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: