- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Thu, 23 Jul 2009 22:17:13 -0400
- 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 UTC