React to aspnet/Razor#220.
- Added the ability for the WriteTagHelperAsync in RazorPage.cs to understand minimized attributes.
This commit is contained in:
parent
6ef8be92ff
commit
247625dcab
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue