You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
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 the InputTagHelper 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).
NTaylorMullen
changed the title
Tag Helpers: InputTagHelper renders a closing tag for type="submit" and type="button"
InputTagHelper renders a closing tag for type="submit" and type="button"
Jan 23, 2015
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: