[whatwg] WebIDL nested interfaces
Boris Zbarsky
bzbarsky at MIT.EDU
Mon Sep 10 15:53:30 PDT 2012
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
More information about the whatwg
mailing list