Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was 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

@DamianEdwards

Description

@DamianEdwards

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).

<input type="submit" value="Log in" class="btn btn-default" /> becomes <input class="btn btn-default" type="submit" Value="Log in"></input>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions