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...

Received on Friday, 24 July 2009 02:18:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:23 UTC