Razor Analyzer: Detect when checked attribute is invalid.
Open
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
Assessment
This issue has not been assessed yet.