[whatwg] getImageData()

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

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
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Tuesday, 6 March 2007 07:24:07 UTC