Re: Canvas 2D API specification update

Philip Taylor wrote:
 > ...
> If the canvas ImageData structure was defined in a separate spec, I'd 
> expect HTML5 to ignore ImageData and the new spec to override HTML5's 
> definition of 'structured clone' (as allowed by 
> http://whatwg.org/html5#other-applicable-specifications). That avoids 
> bi-directional references, and doesn't seem like an obvious nightmare to 
> me, though it would introduce a new risk of the specs getting out of sync.
> ...

The alternative would be to define a generic way how to expose the 
"structured cloneing" feature on any Javascript object (if this would be 
Java you'd define an interface an object can implement or not, dunno 
about the best way to do it in JS).

 > ...

BR, Julian

Received on Thursday, 22 October 2009 09:49:02 UTC