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

Does it walk up to the partial?  Back when that text written, it would walk up to its _interface_ which was not the same thing at all.  That is, the [Exposed] on the partial was literally a macro that set it on all the members, not something that got consulted in some order.

What is the expected behavior of this IDL:

    [Exposed=(Foo, Bar)] inteface X {};

    [Exposed=Foo]
    partial interface X {
      [Exposed=Bar] readonly attribute long foo;
    };

Avoiding having to define all the weird edge cases like this (much less having to get everyone to agree on their desired behavior!) was the other motivation for the current 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#issuecomment-361809532

Received on Wednesday, 31 January 2018 03:07:30 UTC