W3C home > Mailing lists > Public > public-webevents@w3.org > July to September 2011

Re: Feedback on TouchEvent and DocumentTouch

From: Matt Brubeck <mbrubeck@mozilla.com>
Date: Tue, 13 Sep 2011 08:05:23 -0700
Message-ID: <4E6F7133.1080006@mozilla.com>
To: Anne van Kesteren <annevk@opera.com>
CC: public-webevents@w3.org
On 09/13/2011 07:46 AM, Anne van Kesteren wrote:
> Please do not standardize new initXXXEvent() methods.

Safari has been shipping with these methods (unprefixed) for several 
years now, and so have other WebKit browsers.  Opera and Gecko for 
Android recently followed suit.  I think that IE for Windows Phone may 
also support these methods already.

Removing the create* methods might cause some interop problems. 
Existing content often checks "if (document.createTouch)" for feature 
detection.

> Is it too late to replace these create* methods with actual constructors
> by the way? Should we add constructors nevertheless?

Adding constructors anyway might be a good idea, since it could help us 
step around incompatibilities with the existing implementations of 
initTouchEvent and create*, for example
http://www.w3.org/2010/webevents/track/issues/19 and
http://www.w3.org/2010/webevents/track/issues/20
Received on Tuesday, 13 September 2011 15:05:53 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:53 UTC