Re: Return value of getSupportedConstraints (Re: [Bug 26654] WebIDL types needed in Constrainable application)

On Fri, Oct 10, 2014 at 8:24 PM, Martin Thomson
<martin.thomson@gmail.com> wrote:
> It's possible to use a named properties structure here, isn't it?
> http://www.w3.org/TR/WebIDL/#idl-named-properties
>
> interface ConstraintSetSupports {
>   getter boolean (DOMString constraintName);
> };
>
> With the set of names being defined in text.  This would have the
> advantage of being extensible.

Please don't define any new objects with named getters. They are a
mistake and require JavaScript proxies to be implemented in
JavaScript. IDL will be updated at some point to name these
legacygetter and friends.


-- 
https://annevankesteren.nl/

Received on Monday, 13 October 2014 17:00:06 UTC