Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Input Taghelper generates invalid markup. #2105

Closed
ctolkien opened this issue Mar 2, 2015 · 1 comment
Closed

Input Taghelper generates invalid markup. #2105

ctolkien opened this issue Mar 2, 2015 · 1 comment

Comments

@ctolkien
Copy link

ctolkien commented Mar 2, 2015

(This is in beta 3)

Repo razor file:

@addtaghelper "Microsoft.AspNet.Mvc.TagHelpers"

<input type="text" />

Expected output

<input type="text" />

Actual output:

<input type="text"></input>

The above, being invalid HTML.

"The input element is a void element. An input element must have a start tag but must not have an end tag."

-- http://www.w3.org/TR/html-markup/input.text.html#input.text-tags

@NTaylorMullen
Copy link
Member

Duplicate of #1571

Note that this has been fixed 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants