putImageData() exception

The following text from Section 13 Pixel manipulation [1] is not clear what exception should be raised when the first argument to the putImageData() method is not an ImageData object:  

"If any of the arguments to the method are infinite or NaN, the method must raise a NOT_SUPPORTED_ERR exception.
  If the first argument to the method is null or not an ImageData object then the putImageData() method must raise a TYPE_MISMATCH_ERR exception."

If the first argument is infinite or NaN, should a NOT_SUPPORTED_ERR or TYPE_MISMATCH_ERR be raised? I feel that the intention of the spec was that the first sentence should apply to the numeric arguments to this function.

Can we update the first sentence to state 'numeric arguments', like so:

"If any of the numeric arguments to the method are infinite or NaN, the method must raise a NOT_SUPPORTED_ERR exception.

  If the first argument to the method is null or not an ImageData object then the putImageData() method must raise a TYPE_MISMATCH_ERR exception."

Thanks,
Jatinder

[1] http://www.w3.org/TR/2dcontext/#pixel-manipulation 

Jatinder Mann | Microsoft Program Manager | jmann@microsoft.com

Received on Saturday, 17 July 2010 02:30:38 UTC