Re: [Bindings] 'new' behavior on interface objects

On Tue, 18 Mar 2008 17:56:17 +0100, Travis Leithead  
<travil@windows.microsoft.com> wrote:
> Since this spec is presumably creating a language binding for  
> JavaScript, (and assuming interface objects are Functions, as seen by  
> Opera), then why does:
>
> var div = new HTMLDivElement();
>
> produce a script error?

Because there's no such constructor defined. There's just an object there  
that gives the ability to prototype it, etc.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Tuesday, 18 March 2008 17:15:49 UTC