[Bindings] What does typeof return for interface objects?

>From the spec...

4.2.1. Interface object

The interface object for a particular interface has an internal [[Prototype]] object whose value is the Object prototype object.

>> So, can infer that the interface object (lets use HTMLDocument) *is an* Object? Or is it a Function?

>> ("object" == typeof HTMLDocument) ? "It's an object" : ("function" == typeof HTMLDocument) ? "It's a function" : "What is it?";

>> I see that browsers disagree and that FF3 B4 recently changed to be 'object'. Leaving Opera in the wrong?

Received on Tuesday, 18 March 2008 16:52:51 UTC