[heycam/webidl] [Exposed] doesn't seem to work well with partial interfaces (#154)

Previously at https://github.com/heycam/webidl/pull/121#discussion_r76247465 and https://github.com/heycam/webidl/pull/121#discussion_r76250672

The spec currently says

> "Any extended attribute specified on a partial interface definition is considered to appear on the interface itself"

Which does not seem to work well with [Exposed] (and possibly not well with [SecureContext] either). Probably that statement needs to be modified, but we also need to think about why it's there in the first place and for what extended attributes it does make sense

We are also missing a potential restriction which seems important, namely "If [Exposed] appears on a partial interface, then the partial interface's exposure set MUST be a subset of the interface's exposure set."

In general it's not clear what putting different [Exposed] values on an interface vs. a partial interface might mean, or on members of an interface or members of a partial interface.

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

Received on Thursday, 25 August 2016 18:44:39 UTC