Last active
December 15, 2015 11:09
-
-
Save walterdavis/5251181 to your computer and use it in GitHub Desktop.
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
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/prototype/1.7/prototype.js"></script> | |
<script type="text/javascript"> | |
document.observe('dom:loaded', function(){ | |
var _test = new Element('input', {type: 'search'}); | |
if( ! ('-webkit-appearance' in _test.style) || _test.style['-webkit-appearance'] && _test.style['-webkit-appearance'] != 'search'){ | |
$$('input[type="search"]').addClassName('safari'); | |
} | |
}) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment