[webcomponents] registerElement() should be scoped to modules (bugzilla: 27835) (#156)

Title: registerElement() should be scoped to modules (bugzilla: 27835)

Migrated from: https://www.w3.org/Bugs/Public/show_bug.cgi?id=27835

----
comment: 0
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=27835#c0
*Ian 'Hixie' Hickson* wrote on 2015-01-14 23:31:00 +0000.

I'm not sure exactly how this should look, but we need to scope custom element registrations. Otherwise, importing two unrelated libraries will lead to their internals stomping on each other if they happen to register elements internally that use the same name, e.g. 'output' or something generic like that.

----

comment: 1
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=27835#c1
*Boris Zbarsky* wrote on 2015-01-15 01:06:05 +0000.

The hard part here is the interaction with parsing....

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/156

Received on Monday, 6 July 2015 07:37:38 UTC