Re: document.createTouch

(13/04/05 4:57), Ms2ger wrote:
> I'd like to point out that Chrome and Gecko (from code inspection, at
> least) appear to treat all arguments to the document.createTouch method
> as optional. The spec [1] requires an exception to be thrown when those
> arguments are omitted, though.

For this particular function, it also not clear to me what result of the
following should be:

  alert(document.createTouch(window, document,
                             0, 1, 2, 3, 4).clientX);

Firefox on Android gives 0, while Opera Mobile 12 and Chrome 25 give 1.

The very short prose:

  # Creates a Touch object with the specified attributes.

seems to indicate that Touch has a "view" attribute too, but that
doesn't seem to be the case.



Cheers,
Kenny
-- 
Web Specialist, Opera Sphinx Game Force, Oupeng Browser, Beijing
Try Oupeng: http://www.oupeng.com/

Received on Thursday, 4 April 2013 21:42:53 UTC