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

Per the spec:

> The [Exposed] extended attribute must not be specified both on an interface, mixin, or namespace member, and on the partial interface, partial interface mixin, or partial namespace definition the member is declared on.
>
> Note: This is because adding an [Exposed] extended attribute on a partial interface, partial interface mixin, or partial namespace is shorthand for annotating each of its members.

But the algorithm for retrieving the exposure set of an interface member works just fine if it both has an [Exposed] and is in a partial interface with an [Exposed] - it'll grab the member's [Exposed] if it exists, otherwise it walks up to the partial and grabs its [Exposed].  This makes sense - it's the same defaulting behavior that [Exposed] has for members of non-partial interfaces.  So what's the point of the restriction?

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

Received on Wednesday, 31 January 2018 01:49:29 UTC