[whatwg] getImageData()

Anne van Kesteren annevk at opera.com
Tue Mar 6 07:24:07 PST 2007

The specification should probably indicate that for non-positive arguments  
for the widht and height this method must throw an INDEX_SIZE_ERR  

It would also be nice if it was made more explicit that the height and  
width you ask for with getImageData() don't necessarily reflect the height  
and width attributes of the ImageData object you get back.

Maybe putImageData() should throw a TYPE_MISMATCH_ERR for non ImageData  
objects as first argument? Similar to drawImage()...

Anne van Kesteren

More information about the whatwg mailing list