W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2014

[webidl] Defining constructors on non-global objects?

From: Kostiainen, Anssi <anssi.kostiainen@intel.com>
Date: Fri, 5 Sep 2014 06:40:37 +0000
To: public-script-coord <public-script-coord@w3.org>
Message-ID: <BEE6C7C6-9A00-4940-9E98-7175510BD6A7@intel.com>
Hi,

What is the appropriate way to define constructors on non-global objects in WebIDL? IOW, here’s what we’d like to spec in WebIDL:

new Sensor.AmbientLight();

I first thought [NamedConstructor] could be used but after revisiting the WebIDL spec it appears that is not the case.

Thanks,

-Anssi
Received on Friday, 5 September 2014 06:43:53 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:22 UTC