Is your feature request related to a problem? Please describe.
As part of a work on investigating micro frontends architecture, I'm trying to encapsulate a Blazor WebAssembly into an HTML Custom Element. Using HTML Custom Element allows a certain abstraction on micro frontends, compositing a final web application with micro frontends that are hiding different technologies (React, Blazor, plain old HTML, etc...).
The framework for Blazor WebAssembly does seem to be only designed to describe a full website.
Describe the solution you'd like
In my investigations, I've found one hard stopper with builder.RootComponents.Add<App>("#app");.
The RootComponents property does not allow finding an element from within an HTML shadowRoot, which is mandatory in HTML Custom Elements.
Thus a good start of a solution would be to allow Blazor WebAssembly to access elements from within a shadow root.
Is your feature request related to a problem? Please describe.
As part of a work on investigating micro frontends architecture, I'm trying to encapsulate a Blazor WebAssembly into an HTML Custom Element. Using HTML Custom Element allows a certain abstraction on micro frontends, compositing a final web application with micro frontends that are hiding different technologies (React, Blazor, plain old HTML, etc...). The framework for Blazor WebAssembly does seem to be only designed to describe a full website.
Describe the solution you'd like
In my investigations, I've found one hard stopper with
builder.RootComponents.Add<App>("#app");
. TheRootComponents
property does not allow finding an element from within an HTMLshadowRoot
, which is mandatory in HTML Custom Elements. Thus a good start of a solution would be to allow Blazor WebAssembly to access elements from within a shadow root.