Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Commit

Permalink
Correct initialization of `IdAttributeDotReplacement
Browse files Browse the repository at this point in the history
- #704 part 1 of 2
- doesn't help tag builders unless done in `DefaultHtmlGenerator`
  • Loading branch information
dougbu committed Oct 17, 2014
1 parent 98d749d commit f9e44ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ public class DefaultHtmlGenerator : IHtmlGenerator
_antiForgery = antiForgery;
_metadataProvider = metadataProvider;
_urlHelper = urlHelper;

// Underscores are fine characters in id's.
IdAttributeDotReplacement = "_";
}

/// <inheritdoc />
Expand Down
3 changes: 0 additions & 3 deletions src/Microsoft.AspNet.Mvc.Core/Rendering/Html/HtmlHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ public class HtmlHelper : IHtmlHelper, ICanHasViewContext
_viewEngine = viewEngine;
_htmlGenerator = htmlGenerator;
MetadataProvider = metadataProvider;

// Underscores are fine characters in id's.
IdAttributeDotReplacement = "_";
}

/// <inheritdoc />
Expand Down

0 comments on commit f9e44ff

Please sign in to comment.