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

TagHelper attributes with no value cannot be used in TagHelpers #220

@NTaylorMullen

Description

@NTaylorMullen

Razor does not correctly parse HTML attributes that have no value.

After playing around with the parse tree a bit I noticed that if you were to create HTML elements such as:

<input checked>
<input checked value>

The Razor parser does not generate an accurate syntax tree. This in turn results in the generated code not calling WriteAttribute and furthermore with TagHelpers does not allow us to pull the attributes from an HTML element easily.

Once this has been added we should also support this attribute syntax in Tag Helpers.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions