http://whatwg.org/specs/web-apps/current-work/#createpatternimage does not specify what should happen when the image argument is of the wrong type. The specification should probably say that in that case the TYPE_MISMATCH_ERR exception should be thrown just as it does for drawImage()...
-- Anne van Kesteren <http://annevankesteren.nl/>
