-
-
Save milesplit/1399503 to your computer and use it in GitHub Desktop.
testSupport
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// testSupport for HTML 5 input types | |
// By: Jason Byrne of MileSplit, Inc. | |
// | |
// Just needed a simple thing to test for support | |
// | |
// Adapted from: http://miketaylr.com/code/html5-forms-ui-support.html | |
var testSupport = function(t){ | |
var f = ':('; | |
return ($('<input type="' + t + '">').val(f).val() !== f); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I only tested this with input color so far