dotnet / AspNetCore.Docs

Documentation for ASP.NET Core
https://docs.microsoft.com/aspnet/core
Creative Commons Attribution 4.0 International
12.43k stars 25.33k forks source link

Documatation on conditional attributes is incomplete. #32916

Open Neutrino-Sunset opened 1 week ago

Neutrino-Sunset commented 1 week ago

Description

https://learn.microsoft.com/en-us/aspnet/core/mvc/views/razor?view=aspnetcore-8.0#conditional-attribute-rendering

Conditional attribute rendering does not work for data atrtibutes, but there is no mention of this.

Page URL

https://learn.microsoft.com/en-us/aspnet/core/mvc/views/razor?view=aspnetcore-8.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/mvc/views/razor.md

Document ID

a0b3b70a-3b39-1b5f-a4ce-c41bd2d6b044

Article author

@tdykstra

Rick-Anderson commented 4 days ago

@Neutrino-Sunset can you post a GitHub repo with the simplest possible app that demonstrates the problem and explain what you expect?