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