title: "Element not closed" error after upgrading from MVC3 to MVC4
body: <p>Razor 2 (which ships with MVC4) doesn't seem to be fully backwards compatible with Razor 1 (from MVC3).</p>
  
  <p>Since upgrading, I found an error:</p>
  
  <blockquote>
    <p>The "td@Html.Raw(count" element was not closed.  All elements must be either self-closing or have a matching end tag.</p>
  </blockquote>
  
  <p>The code that caused this was:</p>
  
  <pre><code>&lt;td@Html.Raw(count == null ? null : " class='has-item'")&gt;
  </code></pre>
  
  <p>What is the solution to this?</p>