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

Another way to slice this might be to offer a way to opt-out of encapsulated features, a static `unneeded` taking `["shadow", "internals"]`, which would make `attachShadow()` and `getInternals()` (or `attachInternals()` if there's some kind of cascade going on) throw, similar to how they throw for the `html` element.

(I don't think anyone is trying to make this secure/tamper-proof as that is indeed not possible; this is about the encapsulation boundary.)

-- 
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-437280081

Received on Friday, 9 November 2018 08:00:40 UTC