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

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

From: Cameron McCormack <cam@mcc.id.au>
Date: Tue, 02 Aug 2011 11:32:12 +1200
Message-ID: <4E37377C.1090700@mcc.id.au>
On 2/08/11 6:29 AM, Tab Atkins Jr. wrote:
> It's a confusion shared by all objects, though:
>
> var x = [1,2];
> var y = [1,2];
> alert([x,y,x==y).join(' ');
>
> This alerts "1,2 1,2 false".

That is true, but I get the impression that some authors don't know that 
the Location object is actually an object rather than a string.

I don't feel like [PutForwards] is a particularly obvious API design 
pattern for authors, and I don't think we should be adding new uses of it.
Received on Monday, 1 August 2011 16:32:12 UTC

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