Closed Steveiwonder closed 5 years ago
Create a form
@{ ViewData.TemplateInfo.HtmlFieldPrefx = "__Prefix"; } <form> <input asp-for="FirstName" /> </form>
When using any HtmlFieldPrefix that begins __ (double underscore) the output html is incorrect, it converts the first _ to z for the id only
__
_
z
So the above form would look like:
<form> <input name="__FirstName" id="z_FirstName" /> </form>
I can reproduce this in a clean MVC project.
Thanks for contacting us, @Steveiwonder. @NTaylorMullen, can you please look into this? Thanks!
Duplicate of https://github.com/aspnet/Mvc/issues/7859
Is this a Bug or Feature request?: Bug
Steps to reproduce (preferably a link to a GitHub repo with a repro project):
Create a form
Description of the problem:
When using any HtmlFieldPrefix that begins
__
(double underscore) the output html is incorrect, it converts the first_
toz
for the id onlySo the above form would look like:
I can reproduce this in a clean MVC project.