This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
InputTagHelper renders a closing tag for type="submit" and type="button" #1571
Labels
Milestone
The
InputTagHelper
renders a closing tag when type is equal to "submit" or "button". It's likely this is the behavior for all types not specifically understood by theInputTagHelper
after a quick glance at its code.It's also possible the issue is that the state of
TagHelperOuput.SelfClosing
does not correctly reflect what is in the source CSHTML and thus the fact the element is already self-closed in the source is lost after parsing (in which case this should be a bug against the Razor repo).<input type="submit" value="Log in" class="btn btn-default" />
becomes<input class="btn btn-default" type="submit" Value="Log in"></input>
The text was updated successfully, but these errors were encountered: