Skip to content

Instantly share code, notes, and snippets.

@walterdavis
Last active December 15, 2015 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save walterdavis/5251181 to your computer and use it in GitHub Desktop.
Save walterdavis/5251181 to your computer and use it in GitHub Desktop.
<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