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

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