title: I want to make a div contain the default action (pressing <Enter> in this case) instead of having to create a button
body: <p>This is only a problem in IE8. It works fine in Firefox, Chrome, Safari and even IE9. Anyway, I have a div on my app's login page that I have styled to look like a giant gray button. Here is the code: </p>
  
  <pre><code>.user_form .submit input[type=submit] {
    display: block;
    width: 100%;
    height: 55px;
    text-align: left;
    margin-bottom: 0;
    padding: 0 11px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    line-height: 25px;
    text-shadow: -1px -1px 1px rgba(0,0,0, 0.25);
    text-transform: uppercase;
    background: #4a5a64 url(/images/h1_background.gif) repeat-x;
    border: none;
  }
  </code></pre>
  
  <p>And here is the haml code: </p>
  
  <pre><code>.submit
    = submit_tag 'Sign in', :class =&gt; 'no_style', :type =&gt; 'submit'
  </code></pre>
  
  <p>Since this works fine on all browswers with the sole exception of IE8, I was wondering if there was a way to fix this without converting this into a button, i.e., something like this in the haml: </p>
  
  <pre><code>.submit
    %button.submit_tag { bla bla bla } Sign In
  </code></pre>
  
  <p>Thank you!</p>
  
  <p>Update: Here is ALL of my Haml code for the entire login page. As I said, in Firefox, Chrome and IE9, if you enter a user name and password and then press the Enter key, you then proceed to the welcome page (assuming, of course, that your user name and password are correct). In IE8, however, you just get a beep and you remain on the page. </p>
  
  <pre><code>- content_for :trackers do
    = google_analytics_standard_page_tracker
    = salesforce_tracker
  
  - title 'Sign In', false
  
  - form_for :session, :url =&gt; session_path, :html =&gt; { :class =&gt; 'user_form' } do |f|
    .field
      = f.label :email, 'Username'
      = f.text_field :email, :maxlength =&gt; 255, :autofocus =&gt; true
    .field
      = f.label :password
      = f.password_field :password
  
    .submit
      %input{ :type =&gt; 'submit', :value =&gt; 'Sign in' }
  
  .section.right
    %ul.links
      %li= link_to 'Forgot password?', new_password_path
      %li= link_to 'Don\'t have an account? Sign up now', marketing_site_url("/index.php/buy-now")
      %li= link_to 'Resend activation email', resend_activation_path
  
    = render 'shared/need_help'
  </code></pre>