Re: [w3c/webcomponents] Is there a way to retrieve the localName from a custom element constructor? (#566)

> Alternatively, we can make get return a name or a constructor based on argument but that seems rather odd.

Yeah, that's probably not a good idea. I think the naming of `get` is sort of awkward anyways. What are we "getting"? In the context of `customElements` it feels like it should return a "custom element", but it returns a "custom element constructor" so maybe a rename of that before finalising v1 is a good thing, even if `getName()` is never implemented. `getConstructor()` seems logical to me.

-- 
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/566#issuecomment-251841637

Received on Thursday, 6 October 2016 01:03:03 UTC