Re: [whatwg] WebIDL nested interfaces

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