aspnetcore/test
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
..
Microsoft.AspNet.Mvc.Core.Test Sanitize "id" attributes for HTML 4.0.1 2014-10-17 16:12:45 -07:00
Microsoft.AspNet.Mvc.FunctionalTests
Microsoft.AspNet.Mvc.HeaderValueAbstractions.Test
Microsoft.AspNet.Mvc.ModelBinding.Test
Microsoft.AspNet.Mvc.Razor.Host.Test
Microsoft.AspNet.Mvc.Razor.Test
Microsoft.AspNet.Mvc.TagHelpers.Test Sanitize "id" attributes for HTML 4.0.1 2014-10-17 16:12:45 -07:00
Microsoft.AspNet.Mvc.Test
Microsoft.AspNet.Mvc.WebApiCompatShimTest
WebSites