Skip to content

Commit 51739f3

Browse files
Influence HTML head from Blazor (#23833)
* Started on head manager * Working prototype. * Started on improved meta tag support. * Improved meta support and better thread safety. * Improved synchronization. * Added support for meta "property" attribute. * Updated exception message. * Added link element support. * Started on functional tests. * Added more functional tests. * Added E2E tests. * Simplified implementation. * Prerendering support. * Small documentation updates. * Made TagElement and TitleElement readonly. * Removed M.A.Components.Server dependency. * Minor fixes and updates. * Update PrerenderedHeadComponent.razor * Removed AddWebExtensions. * Applied CR feedback
1 parent 09343d2 commit 51739f3

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

dist/Release/blazor.server.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Release/blazor.webassembly.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Rendering/LogicalElements.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,10 @@ export function removeLogicalChild(parent: LogicalElement, childIndex: number) {
132132
// If it's a logical container, also remove its descendants
133133
if (childToRemove instanceof Comment) {
134134
const grandchildrenArray = getLogicalChildrenArray(childToRemove);
135-
while (grandchildrenArray.length > 0) {
136-
removeLogicalChild(childToRemove, 0);
135+
if (grandchildrenArray) {
136+
while (grandchildrenArray.length > 0) {
137+
removeLogicalChild(childToRemove, 0);
138+
}
137139
}
138140
}
139141

0 commit comments

Comments
 (0)