Comments on HTML Canvas 2D Context WebIDL

Hi,

Looking quickly at the 2D Context editors draft
http://dev.w3.org/html5/2dcontext/ I found the following couple of
problems:
• the spec uses WebIDL to define the API, but WebIDL isn't referenced
normatively from the spec
• the first, third and fifth definitions of
CanvasRenderingContext2D.drawImage() have their penultimate arguments
(dw) marked as optional, while the last one (dh) isn't — that's
forbidden by WebIDL
• likewise, CanvasRenderingContext2D.putImage() has its 4th argument
optional, while the following ones are not
• shouldn't the various interfaces be marked wit the [NoInterfaceObject]
extended attribute?

Dom

Received on Tuesday, 15 June 2010 15:03:54 UTC