Re: WebEvents-ISSUE-10: relatedTarget attribute [Touch Events spec]

On 03/29/2011 12:00 PM, Web Events Working Group Issue Tracker wrote:
> "mouseover" and "mouseout" events have a relatedTarget attribute.  The target and relatedTarget attributes are the element that the mouse entered and exited, respectively (or vice-versa for mouseout events):
>
> http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-MouseEvent-relatedTarget
>
> Should "touchenter" and "touchleave" events have the same relatedTarget attribute?

Here is a proposed relatedTarget attribute for the TouchEvent interface, 
adapted directly from the language in DOM Level 2 Events:

relatedTarget of type EventTarget, readonly:
   Used to identify a secondary EventTarget related to a touch event. 
This attribute is used with the touchenter event to indicate the 
EventTarget which the touch point exited, and with the touchleave event 
to indicate the EventTarget which the touch point entered.

Received on Tuesday, 12 April 2011 17:03:30 UTC