4 ms·
Any ideas on how a website should use this? Can you detect if input.date exists easily (for the current browser) without resorting to checking the brand and ve
by ape4 9y ago
Any ideas on how a website should use this? Can you detect if input.date exists easily (for the current browser) without resorting to checking the brand and version of the browser?
- kemayo 9y agoModernizr detects supported input types: https://github.com/Modernizr/Modernizr/blob/master/feature-detects/inputtypes.js 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.