W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2011

[whatwg] link.sizes and [PutForwards=value]

From: Mounir Lamouri <mounir.lamouri@gmail.com>
Date: Wed, 05 Jan 2011 11:15:36 +0100
Message-ID: <4D2444C8.8040502@gmail.com>
On 01/05/2011 02:29 AM, Ian Hickson wrote:
> On Thu, 14 Oct 2010, Olli Pettay wrote:
>>
>> may I wonder why on earth any new API, like
>> link.sizes uses PutForwards?
>> IMHO, PutForwards should be limited to the
>> awkward DOM0 APIs like window.location.
> 
> On Fri, 15 Oct 2010, Olli Pettay wrote:
>>
>> It makes getters and setters work in a very different way.
>> Inconsistency in APIs isn't a good thing.
> 
> I don't understand how they work in a different way?
> 
> The idea is to make the attribute appear to work like a DOMString for most 
> purposes, but to allow methods to be invoked on it. (All the attributes 
> that have [PutForwards] set also have a stringifier on their object's 
> interface.)

Is there a use case for [PutForwards] (except saving a few characters
for the authors) that could justify the inconsistency?

--
Mounir
Received on Wednesday, 5 January 2011 02:15:36 UTC

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