Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

"__RequestVerificationToken" hidden input element is generated as invalid HTML #19

@thomas-j-moffett

Description

@thomas-j-moffett

Using TagBuilder in this section of code

https://github.com/nikmd23/CourtesyFlush/blob/master/source/CourtesyFlush/HtmlHelperExtension.cs#L36

renders the following invalid HTML:
<input name="__RequestVerificationToken" type="hidden" value="_VALUE_REMOVED_"></input>

The input element is an empty element. For more info: https://developer.mozilla.org/en-US/docs/Glossary/empty_element

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions