Re: Feedback on TouchEvent and DocumentTouch

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