typeof symbol (Was: Sept 19 TC39 Meeting Notes)
domenic at domenicdenicola.com
Mon Oct 1 13:51:13 PDT 2012
From: es-discuss-bounces at mozilla.org [es-discuss-bounces at mozilla.org] on behalf of David Bruant [bruant.d at gmail.com]
Sent: Monday, October 01, 2012 16:23
To: Brendan Eich
Subject: Re: typeof symbol (Was: Sept 19 TC39 Meeting Notes)
> Try "typeof document.createElement('div').offsetParent" on IE6-8. I can't verify because I'm not Ubuntu right now, but if I recall it will give you "unknown".
> If it works, credit where it's due, John-David Dalton shared this to me a while ago. If it doesn't work, sorry for the noise.
> If I had to guess, I'd say it's been fixed in IE9, but I'm interested if someone can test.
Yeah, according to IE10 and its compatibility modes at least, IE7 and IE8 give "unknown" while IE9 and IE10 give "object".
More information about the es-discuss