Re: [heycam/webidl] Allow extended attributes to apply to types (#286)

@domenic: It would be impossible for the parse to distinguish whether the extended attribute belongs to the dictionary member (or the argument) in such cases. This is thus [clarified in prose](https://heycam.github.io/webidl/#idl-type-extended-attribute-associated-with) on a per extended attribute basis. It remains transparent to editors, though.

For example in the below sample, [Clamp] will be associated with the `long` type, while [CustomAttr] with the `bar` dictionary member:

```webidl
dictionary Foo {
  [Clamp] long foo;
  [CustomAttr] DOMString 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/pull/286#issuecomment-290655054

Received on Friday, 31 March 2017 08:49:20 UTC