W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2014

Re: [geometry] DOMRectList with legacy

From: Rik Cabanier <cabanier@gmail.com>
Date: Thu, 17 Jul 2014 23:20:56 -0700
Message-ID: <CAGN7qDC809wLcjSNp7sH6udqpSpWGLHY0mFKbFPyt3=fMXab1Q@mail.gmail.com>
To: Dirk Schulze <dschulze@adobe.com>
Cc: Boris Zbarsky <bzbarsky@mit.edu>, Domenic Denicola <domenic@domenicdenicola.com>, Anne van Kesteren <annevk@annevk.nl>, "public-script-coord@w3.org" <public-script-coord@w3.org>, FX <public-fx@w3.org>, "ms2ger@gmail.com" <ms2ger@gmail.com>
On Thu, Jul 17, 2014 at 11:10 PM, Dirk Schulze <dschulze@adobe.com> wrote:

>
> On Jul 18, 2014, at 7:05 AM, Boris Zbarsky <bzbarsky@MIT.EDU> wrote:
>
> > On 7/17/14, 5:37 PM, Dirk Schulze wrote:
> >> With the current limitations of WebIDL, does it mean you prefer using
> [ArrayClass]? (Instead of subclassing Array?).
> >
> > For green-field things, I would prefer just using an Array for now, then
> doing subclassing once it's implemented.
> >
> > For legacy stuff, subclassing Array is not an option thus far, because
> none of the JS engines support subclassing yet.  This has nothing to do
> with WebIDL limitations; it's a V8/SpiderMonkey/Chakra/JSC limitation.
> >
> >> Does that work together with [NoInterfaceObject]
> >
> > You mean [ArrayClass]?  Yes, it does.
> >
> >> and would you even consider it?
> >
> > Consider [NoInterfaceObject], you mean?  I could probably live with
> that, yes.
>
> Thanks Boris! Anne, Domenic, Ms2ger, Rik does that sound like a compromise:
>
> [NoInterfaceObject,
>  ArrayClass]
> interface DOMRectList {
>     readonly attribute unsigned long length;
>     getter DOMRect? item(unsigned long index);
> };
>

Weren't we going to rename it to LegacyDOMRectList so people don't try to
reuse it in the future?
I would still like to know if other browser are onboard with implementing
[ArrayClass] and extending this object with that feature.
Received on Friday, 18 July 2014 06:21:24 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:22 UTC