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.

Razor does not correctly parse HTML attributes that have spaces surrounding the equals #123

@NTaylorMullen

Description

@NTaylorMullen

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

<div class   =     "foo"></div>
<div class   ="foo"></div>
<div class=    "foo"></div>

The Razor parser does not generate an accurate syntax tree (which is used to generate correct "dynamic" attribute code) that can pull the full attribute value out of the HTML output if the inner condition results to false.

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