Re: [heycam/webidl] [Exposed] section unnecessarily restrictive about partial interface + members (#515)

It walks up to the partial <https://heycam.github.io/webidl/#dfn-exposure-set>:

> 3. If C is an interface member, interface mixin member, or namespace member, then:
> [...]
> Otherwise, set C to be the interface, partial interface, interface mixin, partial interface mixin, namespace, or partial namespace C is declared on.

Then the algo retrieves the exposure set of the partial interface and returns it (or walks up to the original non-partial version of the interface and returns the exposure set of *that*).

Per the current algorithm, in your example, `X` is exposed to both `Foo` and `Bar`, while `X.foo` is only exposed to `Bar`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/515#issuecomment-361811440

Received on Wednesday, 31 January 2018 03:21:14 UTC