dotnet / dotnet/roslyn

Razor Analyzer: Detect when checked attribute is invalid.

Open
#85,643 0 comments 1 reaction 0 assignees View on GitHub
Area-Razor Feature Request
Dominant language
C#
Stars
20.7k
Forks
4.3k
PR merge metrics
PR metrics pending

Description

This is valid razor and C# but ends up with invalid HTML. We should add an analyzer that attempts to detect these scenarios and warns when the resulting expression is not valid HTML.

_Originally posted by @chsienki in https://github.com/dotnet/razor/issues/12690#issuecomment-3793824271_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.