W3C home > Mailing lists > Public > www-svg@w3.org > July 2009

Re: Canvas and Interactivity

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 23 Jul 2009 22:17:13 -0400
Message-ID: <4A6919A9.7060300@mit.edu>
To: Jonathan Watt <jwatt@jwatt.org>, "Robert O'Callahan" <robert@ocallahan.org>, Jeff Schiller <codedread@gmail.com>, anthony.grasso@cisra.canon.com.au, www-svg <www-svg@w3.org>
Cameron McCormack wrote:
> In particular, unary ! won’t invoke valueOf on the object.  It just
> evaluates to true for any object.

You mean false, right?

> Even more troublesome would be == and !=.  If you had rect.x and rect.y
> both be SVGAnimatedLengths whose values were 10, then rect.x == rect.y
> will evaluate to false, since == will check for object identity.

=== checks for identity.  == does not, last I checkd and in fact there 
are plenty of cases around in Gecko where == tests true on a pair of 
objects while === tests false...

No comment on confusion value...

-Boris
Received on Friday, 24 July 2009 02:18:07 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:42 GMT