W3C home > Mailing lists > Public > public-media-capture@w3.org > October 2014

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

From: Anne van Kesteren <annevk@annevk.nl>
Date: Mon, 13 Oct 2014 18:59:39 +0200
Message-ID: <CADnb78gvfsh5mB86YgisLRDkO4PFHgr063uY2w8+Yo2oRghixw@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: Jan-Ivar Bruaroey <jib@mozilla.com>, Harald Alvestrand <harald@alvestrand.no>, "public-media-capture@w3.org" <public-media-capture@w3.org>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:24:50 UTC