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

Re: Canvas and Interactivity

From: Cameron McCormack <cam@mcc.id.au>
Date: Fri, 24 Jul 2009 13:22:16 +1000
To: Boris Zbarsky <bzbarsky@MIT.EDU>
Cc: 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>
Message-ID: <20090724032216.GA5476@arc.mcc.id.au>
Cameron McCormack:
> > In particular, unary ! won’t invoke valueOf on the object.  It just
> > evaluates to true for any object.

Boris Zbarsky:
> You mean false, right?

Yep. :)

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

== checks for identity if both operands are objects, I thought (in
addition to doing different kinds of comparisons if the operands are of
different types):

  http://bclary.com/2004/11/07/#a-11.9.3 (step 13)

-- 
Cameron McCormack ≝ http://mcc.id.au/
Received on Friday, 24 July 2009 03:23:14 GMT

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