Non-standard: This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
The read-only explicitOriginalTarget
property of the Event
interface returns the non-anonymous original target of the event.
If the event was retargeted for some reason other than an anonymous boundary crossing, this will be set to the target before the retargeting occurs.
For example, mouse events are retargeted to their parent node when they happen over text nodes (see Webkit bug 185889), and in that case currentTarget
will show the parent while this property will show the text node.
This property also differs from originalTarget
in that it will never contain anonymous content.