A web component is an HTML tag and a bunch of attributes, which is why they're so great. If that doesn't "just work" it means there are a ton of invisible special cases in HTML handling.
Again, bad idea that inflicts papercuts on developers over and over.
Web frameworks produce HTML and trying to treat HTML like a series of special cases imposes pointless pain on people for no reason.