W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2012

Re: [whatwg] Spec for location object needs to make some properties unforgeable; need supporting WebIDL changes

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 25 Sep 2012 21:37:49 -0400
Message-ID: <50625C6D.5030906@mit.edu>
To: whatwg@lists.whatwg.org
On 9/25/12 9:28 PM, Cameron McCormack wrote:
> Boris Zbarsky:
>> I can live with this, but why is this better than just allowing
>> [Unforgeable] on all operations and attributes and defining an "object
>> valueOf(); /* returns self */ " on Location?
> If we really do want to make all Location interface members be
> unforgeable, then moving the [Unforgeable] up to the interface seems
> like a nicer way to indicate that.  It also means we don't have to
> pretend we really are defining a useful "valueOf" operation.

I guess the question is whether we're more likely to need [Unforgeable] 
on some other entire interface or whether were more likely to need 
[Unforgeable] on a single member that's not a readonly attribute.  Of 
course we might never need either one...

Received on Wednesday, 26 September 2012 01:38:19 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:45 UTC