3 ms·
That's true, but they didn't ratify yet a standard on how to handle web components naming collision, so if you create `my-button` and another developer register
by riquito 4y ago
That's true, but they didn't ratify yet a standard on how to handle web components naming collision, so if you create `my-button` and another developer register `my-button`... Or if you want to use two different version of your own `my-button`...
This is the proposal for scoped elements: https://github.com/WICG/webcomponents/blob/gh-pages/proposals/Scoped-Custom-Element-Registries.md https://github.com/WICG/webcomponents/blob/gh-pages/proposal...
- lenkite 4y agoYeah well, good old XML already had this handled through XML namespaces.
- throwaway894345 4y agoWhat happens when your namespaces collide? (:
- ptx 4y agoThe namespaces are URLs, so DNS ensures the domain names are unique globally, the owner of each domain name ensures the paths are unique for that domain, and the author of the XML document ensures the namespace aliases are unique for the specific namespaces used in that specific document.