title: TextBoxFor vs EditorFor, and htmlAttributes vs additionalViewData
body: <p>I have created a default MVC 3 project (using razor), in order to demonstrate an issue.</p>
  
  <p>On the login page, there is a line:</p>
  
  <pre><code>@Html.TextBoxFor(m =&gt; m.UserName)
  </code></pre>
  
  <p>if I change this to:</p>
  
  <pre><code>@Html.TextBoxFor(m =&gt; m.UserName, new { title = "ABC" })
  </code></pre>
  
  <p>Then the it is rendered as (with a title attribute):</p>
  
  <pre><code>&lt;input data-val="true" data-val-required="The User name field is required." id="UserName" name="UserName" title="ABC" type="text" value="" /&gt;
  </code></pre>
  
  <p>However, if I make it an EditorFor:</p>
  
  <pre><code> @Html.EditorFor(m =&gt; m.UserName, new { title = "ABC" })
  </code></pre>
  
  <p>Then it gets rendered (without a title attribute) as:</p>
  
  <pre><code>&lt;input class="text-box single-line" data-val="true" data-val-required="The User name field is required." id="UserName" name="UserName" type="text" value="" /&gt;
  </code></pre>
  
  <p>So in summary, the title attribute is lost when I use EditorFor. </p>
  
  <p>I know that the second parameter for TextBoxFor is called htmlAttributes, and for EditorFor it is additionalViewData, however I've seen examples where EditorFor can render attributes supplied with this parameter.</p>
  
  <p>Can anyone please explain what I am doing wrong, and how I can have a title attribute when using EditorFor?</p>