[whatwg] [Canvas][WebIDL] Canvas .addText takes NoInterfaceObject argument

Dirk Schulze dschulze at adobe.com
Tue Jul 2 21:42:54 PDT 2013


The methods addText() and addPathByStrokingText() [1] take the NoInterfaceObject CanvasDrawingStyle [2] as argument. I wonder if that is even possible for WebIDL since there is no way to create it and no binding to ECMAScript is exposed. Shouldn't it rather be a DrawingStyle object[3], which indeed is an interface? I didn't scan if that is the case in other places as well. The definition of NoInterfaceObject is here [4].


[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-path-addpathbystrokingtext
[2] http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#canvasdrawingstyles
[3] http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#drawingstyle
[4] http://www.w3.org/TR/WebIDL/#NoInterfaceObject

More information about the whatwg mailing list