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 09:00:14 -0700
Message-ID: <4E6F7E0E.8090508@mozilla.com>
To: Anne van Kesteren <annevk@opera.com>
CC: public-webevents@w3.org
On 09/13/2011 08:10 AM, Anne van Kesteren wrote:
> Note that there is a big difference between Document.create* and
> TouchEvent.init*. This first comment was about the latter.

Agreed.  Feature detection code is not an interop issue with 
initTouchEvent, for example.

> Apparently TouchEvent.init* is not baked yet. It seems better to not add
> it at all.

I am inclined to agree with this.  For Touch Events v2, I think that we 
should remove the initTouchEvent method and replace it with constructors.

For v1, we could either specify initTouchEvent as it is currently 
implemented (and then deprecate it in v2), or we could omit it from the 
spec.   (One reason we might want to include it in v1 is that we want a 
way to synthesize events in the test suite for the specification.)

For v2 we should also add constructors for Touch and TouchList objects. 
  However, we might want to also keep the legacy document.createTouch 
and createTouchList methods for backward compatibility with existing 

(As context for anyone new to the working group, our goal is for Touch 
Events v1 to include only those features that have multiple 
interoperable implementations today.  Any features that don't meet that 
criterion today will go into the v2 spec.)
Received on Tuesday, 13 September 2011 16:00:44 UTC

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