diveintohtml5 says it's okay to start using the email form type. So I am trying it out on one of my forms. I'm using jQuery and a plugin called jquery-watermark. It makes the placeholder element work across browsers. The plugin still works on Firefox 3.6 but on Opera 10.61 and Chrome 6 the placeholder isn't rendered.
<script type="text/javascript">
$('form input#comment_email').watermark('email (optional)');
</script>
is used to display the watermark/placeholder.
Rails 3 outputs this:
<input id="comment_email" name="comment[email]" size="30" type="email" />
I'm not sure why it's not working. Any ideas what's going on here?