Maciej Stachowiak: > ECMA-262 actually allows typeof to return anything at all for host > objects (which all of the DOM binding objects are). Of course you’re correct, I forgot about that. > So it would not be an ECMA-262 violation, technically, for an > uncallable object to give typeof == 'function', but I do think it > would be a bad idea. I agree, it doesn’t seem to useful to make the object return 'function' for typeof when it can’t be called. -- Cameron McCormack, http://mcc.id.au/ xmpp:heycam@jabber.org ▪ ICQ 26955922 ▪ MSN cam@mcc.id.auReceived on Wednesday, 19 March 2008 10:56:25 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 19 March 2008 10:56:26 GMT