Re: [w3c/webcomponents] Anonymous custom elements 匿名自定义组件 (#842)

I think #716 is a much better solution for this. Rather than take a name out of the global namespace, just register the elements you need in your scope. Then you can use whatever name you want, including a generated one (within some constraints, like element collaboration that depends on names).

Emulating registry scopes by generating names is similar to emulating shadow dom by generating class names. It can work in some cases, but a real scope will be much better.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/842#issuecomment-539597962

Received on Tuesday, 8 October 2019 16:36:41 UTC