Skip to content

Support enhanced nav updates to link tag integrity #55163

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 16, 2024

Conversation

SteveSandersonMS
Copy link
Member

Fixes #54250

Sometimes there may be special-case rules required to synchronize the attributes/properties on DOM elements. This is one of those cases. When updating a <link> that has integrity, we must update integrity before updating href otherwise it will fail.

A similar thing would happen for script with integrity but we don't actually load new script tags during enhanced nav today anyway. To avoid us forgetting this when potentially adding support for that in the future, I've dealt with this here too.

@SteveSandersonMS SteveSandersonMS requested a review from a team as a code owner April 16, 2024 14:01
@ghost ghost added the area-blazor Includes: Blazor, Razor Components label Apr 16, 2024
@SteveSandersonMS SteveSandersonMS merged commit 19a7642 into main Apr 16, 2024
26 checks passed
@SteveSandersonMS SteveSandersonMS deleted the stevesa/enhanced-nav-and-link-tag-updates branch April 16, 2024 18:01
@dotnet-policy-service dotnet-policy-service bot added this to the 9.0-preview4 milestone Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.NET 8 Blazor - Enhanced Navigation DOM Patching Algorithm and Link Elements
2 participants