Re: [w3c/webcomponents] How to define APIs only for custom element authors (#758)

@calebdwilliams where to store the reference of the instance generated by something like `new ElementInternals(customElement)` is not the issue. You can use a weakmap, a symbol, a private field, etc. This is analog to what `this.attachShadow({ mode: 'closed' })` does today where you're responsible for storing the internal reference to the shadowRoot reference if you want to keep it around. This issue is about how and when to create an instance of `ElementInternals`, who can create it, and what are the semantics of it.

-- 
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/758#issuecomment-421780306

Received on Sunday, 16 September 2018 15:11:51 UTC