Skip to content

[Blazor] Microsoft Edge translation causes crash because of DOM manipulation #47111

Closed as not planned
@scandler

Description

@scandler

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Create new project in Visual Studio from Blazor WASM App template with authentication.
Run in Edge. On my machine, Edge translates English to Dutch which results in console errors:

blazor.webassembly.js:1
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: Cannot read properties of null (reading 'removeChild')
TypeError: Cannot read properties of null (reading 'removeChild')

and application is stuck on "Authenticating..." (or "Machtigen" translated by Edge)

image

Expected Behavior

Translation will work or translation blocked by default, preventing DOM manipulations

Steps To Reproduce

I think to reproduce it on a machine with an English Edge and Windows etc: the best way is to force the page into another language is by changing to in the wwwroot/index.html

Exceptions (if any)

No response

.NET Version

7.0.103

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions