W3C home > Mailing lists > Public > public-webapi@w3.org > March 2008

[Bindings] 'new' behavior on interface objects

From: Travis Leithead <travil@windows.microsoft.com>
Date: Tue, 18 Mar 2008 09:56:17 -0700
To: "Web APIs WG (public)" <public-webapi@w3.org>
Message-ID: <937543397460F840810FA27D2922880F5BC923CD93@NA-EXMSG-W602.wingroup.windeploy.ntdev.microsoft.com>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 18 March 2008 16:57:55 GMT