typeof for html plugin elements
Posted
by gf
on Stack Overflow
See other posts from Stack Overflow
or by gf
Published on 2010-03-18T16:23:13Z
Indexed on
2010/03/18
16:51 UTC
Read the original article
Hit count: 281
When using ECMAScripts typeof on plugin elements (i.e. embed or object), Safari & FireFox return "function":
typeof(window.document['myPlugin']) // "function"
This can't be influenced on the plugin side, as the browser doesn't call the plugin here. Funny enough, in IE the same line evaluates to "object".
Is that simply implementation dependent behaviour as per ECMAScript §11.4.3 or am i missing something here?
© Stack Overflow or respective owner