W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2012

Re: Detecting the "type" of a DOM object

From: Cameron McCormack <cam@mcc.id.au>
Date: Thu, 21 Jun 2012 14:29:03 +1000
Message-ID: <4FE2A30F.4060904@mcc.id.au>
To: Bjoern Hoehrmann <derhoermi@gmx.net>
CC: Boris Zbarsky <bzbarsky@MIT.EDU>, "public-script-coord@w3.org" <public-script-coord@w3.org>
Bjoern Hoehrmann:
> Would you prefer such a method over having a proper `instanceof`-like
> operator on the language level that does not have the problem you cite?

I think that would actually be the ideal solution, although not 
something we could solve over here.  `if (n is Node) ...` reads pretty 
nicely.
Received on Thursday, 21 June 2012 04:29:47 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:06 UTC