W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2010

Re: DOMString-like objects for the CSSOM

From: Simon Pieters <simonp@opera.com>
Date: Sat, 20 Feb 2010 00:53:45 +0100
To: "Boris Zbarsky" <bzbarsky@mit.edu>, "Mark S. Miller" <erights@google.com>
Cc: "public-script-coord@w3.org" <public-script-coord@w3.org>
Message-ID: <op.u8efbvh2idj3kv@simon-pieterss-macbook.local>
On Fri, 19 Feb 2010 17:40:16 +0100, Boris Zbarsky <bzbarsky@mit.edu> wrote:

>> 'f' in 'x'
>> TypeError: Cannot use 'in' operator to search for 'f' in x
>
> This is more serious, since it could hinder object-detection of the new  
> properties....
>
> Thank you for bringing that up.

It would hinder object detection using if ('px' in foo.top), but object  
detection using if (foo.top.px != undefined) would work fine.

-- 
Simon Pieters
Opera Software
Received on Friday, 19 February 2010 23:54:31 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:02 UTC