- From: Anne van Kesteren <annevk@annevk.nl>
- Date: Mon, 13 Oct 2014 18:59:39 +0200
- 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