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

Re: Exposing constructors of readonly interfaces to web authors

From: Anne van Kesteren <annevk@annevk.nl>
Date: Fri, 27 Jun 2014 12:00:00 +0200
Message-ID: <CADnb78hLUojxx07LUfh=KX88hb1wcVbeLDhpepOtzNi-gTQ-qg@mail.gmail.com>
To: Dirk Schulze <dschulze@adobe.com>
Cc: "public-script-coord@w3.org" <public-script-coord@w3.org>
On Fri, Jun 27, 2014 at 9:19 AM, Dirk Schulze <dschulze@adobe.com> wrote:
> The question is probably which argument outweighs the other?

The way Domenic explained this the last time around was that certain
constructors would accept an ID of sorts as argument that only the UA
would know about.

Given that explanation, I don't see the problem throwing for these
constructors, just like we throw for

> new Navigator
> new Window

etc.

We could of course allow dummy objects be constructed if you don't
pass the ID, but that would break consistency with existing objects
such as those I listed above.


What you might want to do instead is just have a single object and
just make the properties throw when the object is in readonly mode or
some such. And allow only the UA to set it in readonly mode for now.


-- 
http://annevankesteren.nl/
Received on Friday, 27 June 2014 10:00:28 UTC

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