Correct initialization of `IdAttributeDotReplacement

- #704 part 1 of 2
- doesn't help tag builders unless done in `DefaultHtmlGenerator`
This commit is contained in:
Doug Bunting 2014-10-17 15:34:17 -07:00
parent 98d749d03c
commit f9e44ff7f9
2 changed files with 3 additions and 3 deletions

View File

@ -39,6 +39,9 @@ namespace Microsoft.AspNet.Mvc.Rendering
_antiForgery = antiForgery;
_metadataProvider = metadataProvider;
_urlHelper = urlHelper;
// Underscores are fine characters in id's.
IdAttributeDotReplacement = "_";
}
/// <inheritdoc />

View File

@ -42,9 +42,6 @@ namespace Microsoft.AspNet.Mvc.Rendering
_viewEngine = viewEngine;
_htmlGenerator = htmlGenerator;
MetadataProvider = metadataProvider;
// Underscores are fine characters in id's.
IdAttributeDotReplacement = "_";
}
/// <inheritdoc />