Mobile safari supports an attribute on input elements called autocapitalize [documented here], which when set to 'off' will stop the iPhone capitalizing the text input into that field, which is useful for url or email fields.
<input type="text" class="email" autocapitalize="off" />
But this attribute is not valid in html 5 (or another spec as far as I know) so including it in the html will produce an invalid html page, what I would like to do is be able to add this attribute to particular fields onload with javascript with something like this:
$(document).ready(function(){
jQuery('input.email, input.url').attr('autocapitalize', 'off');
});
which adds the correct attribute in firefox and desktop safari, but doesn't seem to do anything in mobile safari, any ideas why?