W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2012

Re: [whatwg] WebIDL nested interfaces

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 10 Sep 2012 18:53:30 -0400
Message-ID: <504E6F6A.6080801@mit.edu>
To: whatwg@lists.whatwg.org
On 9/10/12 6:39 PM, Tobie Langel wrote:
> interface WebGLActiveInfo {
>      readonly attribute GLint size;
>      readonly attribute GLenum type;
>      readonly attribute DOMString name;
> };

That just added a "WebGLActiveInfo" property on Window.

Unless you meant to make this [NoInterfaceObject]?

> interface WebGLGlobal {
>    attribute WebGLActiveInfo activeInfo;
> };

That returns an instance of WebGLActiveInfo.  Window.WebGLActiveInfo, 
today, is a Function object, not an instance of WebGLActiveInfo.

Also, that IDL just added a "WebGLGlobal" property on Window.  Whose 
value is a Function object.

-Boris
Received on Monday, 10 September 2012 22:53:59 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:45 UTC