aspnetcore
aspnetcore copied to clipboard
Replace "instanceof" due to DOM realm mixin when Blazor is IFRAME-d
When the Blazor page is in an IFRAME in Chrome (or Edge), the Comments (and potentially other HTML elements) in the frame fail the instanceof test because they're instances of frame's parent's Comment.
Replacing instanceof with this prototype check fixes the issue.
Issue is documented here: https://github.com/dotnet/aspnetcore/issues/55107
Fixes #55107