[Bindings] 'new' behavior on interface objects

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?

Seems like a perfectly valid thing to do, essentially a shortcut to document.createElement('div')

Received on Tuesday, 18 March 2008 16:57:55 UTC