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

Re: How to specify an object that can be mutable or immutable

From: Anne van Kesteren <annevk@annevk.nl>
Date: Wed, 25 Sep 2013 08:56:07 -0400
Message-ID: <CADnb78h7dmhjMWJKRUk=MkhhwH1d_fuhoZkiyfsaNbguA2j3ew@mail.gmail.com>
To: Simon Pieters <simonp@opera.com>
Cc: "public-script-coord@w3.org" <public-script-coord@w3.org>
On Wed, Sep 25, 2013 at 5:21 AM, Simon Pieters <simonp@opera.com> wrote:
> Traditionally, I think DOM specs have just required to either throw or no-op
> in the immutable state, regardless of JS strict mode. CSSOM's
> CSSStyleDeclaration#cssText attribute is an example that always throws.

Are there any other examples that are not killed off?


> Boris Zbarsky suggested it might be better to have two separate interfaces,
> with the mutable interface has settable attributes and the immutable
> interface has readonly attributes.

We do this for URL: http://url.spec.whatwg.org/#api


-- 
http://annevankesteren.nl/
Received on Wednesday, 25 September 2013 12:56:37 UTC

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