RE: "EXAMPLE 4: Firing an untrusted pointer event from script" not working?

I had the same question and Jacob confirmed that it's an IE11 issue. See https://github.com/w3c/web-platform-tests/pull/1074#issuecomment-48989307.

- Cathy.
________________________________
From: ext Patrick H. Lauke<mailto:redux@splintered.co.uk>
Sent: ý7/ý22/ý2014 4:28 AM
To: public-pointer-events@w3.org<mailto:public-pointer-events@w3.org>
Subject: "EXAMPLE 4: Firing an untrusted pointer event from script" not working?

Maybe a naive question that shows my lack of JS chops, but: I've been
trying to actually generate pointer events programmatically using code
based on example 4
https://dvcs.w3.org/hg/pointerevents/raw-file/tip/pointerEvents.html#examples
but in IE11, all I get when trying

var event = new PointerEvent(...);

is an "Object doesn't support this action" error.

Is the problem with the example code, or is it a bug/incomplete
implementation in IE11?

Apologies if the answer is obvious...

P
--
Patrick H. Lauke

www.splintered.co.uk<http://www.splintered.co.uk> | https://github.com/patrickhlauke
http://flickr.com/photos/redux/ | http://redux.deviantart.com
twitter: @patrick_h_lauke | skype: patrick_h_lauke

Received on Tuesday, 22 July 2014 13:14:01 UTC