vladimir at pobox.com
Tue May 13 13:53:29 PDT 2008
On May 10, 2008, at 4:53 PM, Vladimir Vukicevic wrote:
> I would amend the spec to state that if an object is passed to
> putImageData with the necessary properties, but without having been
> created by create/getImageData beforehand, that its dimensions are
> aways in device pixels.
Some suggested language in section 126.96.36.199.11(!):
> If the first argment to the method is null or not an ImageData
> object that was returned by createImageData() or getImageData() then
> the putImageData() method must raise a TYPE_MISMATCH_ERR exception.
I would suggest:
The first argument to the method must be an ImageData object returned
by createImageData(), getImageData(), or an object constructed with
the necessary properties by the user. If the object was constructed
by the user, its width and height dimensions are specified in device
pixels (which may not map directly to CSS pixels). If null or any
other object is given that does not present the ImageData interface,
then the putImageData() method must raise a TYPE_MISMATCH_ERR exception.
More information about the whatwg