- Added the ability for the WriteTagHelperAsync in RazorPage.cs to understand minimized attributes.
This commit is contained in:
N. Taylor Mullen 2015-05-12 17:46:58 -07:00
parent 6ef8be92ff
commit 247625dcab
1 changed files with 7 additions and 3 deletions

View File

@ -289,9 +289,13 @@ namespace Microsoft.AspNet.Mvc.Razor
{
writer.Write(' ');
writer.Write(attribute.Name);
writer.Write("=\"");
WriteTo(writer, HtmlEncoder, attribute.Value, escapeQuotes: true);
writer.Write('"');
if (!attribute.Minimized)
{
writer.Write("=\"");
WriteTo(writer, HtmlEncoder, attribute.Value, escapeQuotes: true);
writer.Write('"');
}
}
if (tagHelperOutput.SelfClosing)