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.2.0+W3C-0.50 : Friday, 24 July 2009 03:23:18 GMT