[whatwg] proposed canvas 2d API additions

Anne van Kesteren fora at annevankesteren.nl
Mon May 8 03:48:01 PDT 2006

Quoting Ian Hickson <ian at hixie.ch>:
>>> How about:
>>>    interface ImageData {
>>>      readonly attribute long int width;
>>>      readonly attribute long int height;
>>>      readonly attribute Array data;
>>>    }

I saw you added this API and noted that you haven't addressed security  
yet. Basically the same security considerations as for toDataURL()  
should apply. I suggest adding that somewhere.

One other problem I had with it was that the colors are restricted to  
8 bit. That may potentially lead to data loss but I guess it's not a  
major concern yet.

Anne van Kesteren

More information about the whatwg mailing list