WNAS

Web developer

HTML5 safe usage 2

Input elements

Input elements are interesting enough for a much longer and more extensive post than I have time for now, but here is one little tidbit I haven't read anywhere else. If you use an unsupported input type in a browser it falls back to text, what I didn't knew is that reading the type with JavaScript fails also Turns out, I was wrong, see here who to detect it.... CSS attribute selectors are fine, only no JavaScript detection. See for yourself below...

Go and compare it with different browsers, just to see which does what.

Be the first to write a comment!