aspnetcore/test/Microsoft.AspNet.Mvc.Core.Test/Rendering
Doug Bunting dd5da33a62 Sanitize "id" attributes for HTML 4.0.1
- #704 part 2 of 2
- change `@Html.Id()` to sanitize return value; was identical to `@Html.Name()`

Copied `TagBuilder.CreateSanitizedId()` and `TagBuilder.Html401IdUtil` from MVC 5.2
- except this `CreateSanitizedId()` returns a valid identifier if first `char` is not a letter
 - e.g. "[0].Name"

nits:
- expand variable names, use lots of `var`, put `public` members first
- add doc comments for `CreateSanitizedId()`

Note users will be able to apply different sanitization once we fix #1188.
2014-10-17 16:12:45 -07:00
..
ViewEngine
BufferEntryCollectionTest.cs DecorateWriter does not get called for partial views rendered via 2014-10-12 14:24:29 -07:00
DefaultDisplayTemplatesTests.cs
DefaultEditorTemplatesTests.cs Add `DefaultEditorTemplates.MultilineTemplate` 2014-10-16 15:14:12 -07:00
DefaultTemplatesUtilities.cs Update `HtmlHelper` to use `IHtmlGenerator` 2014-10-16 21:12:34 -07:00
HtmlAttributePropertyHelperTest.cs
HtmlHelperDisplayNameExtensionsTest.cs
HtmlHelperDisplayTextTest.cs Add Html.Partial - sync versions of Html.PartialAsync 2014-10-14 15:15:50 -07:00
HtmlHelperLabelExtensionsTest.cs Sanitize "id" attributes for HTML 4.0.1 2014-10-17 16:12:45 -07:00
HtmlHelperLinkGenerationTest.cs
HtmlHelperNameExtensionsTest.cs Sanitize "id" attributes for HTML 4.0.1 2014-10-17 16:12:45 -07:00
HtmlHelperPartialExtensionsTest.cs Add Html.Partial - sync versions of Html.PartialAsync 2014-10-14 15:15:50 -07:00
HtmlHelperValueExtensionsTest.cs
StringCollectionTextWriterTest.cs DecorateWriter does not get called for partial views rendered via 2014-10-12 14:24:29 -07:00
ViewContextTests.cs
ViewDataOfTTest.cs