ISSUE-8: Adding mouseenter and mouseleave Events

mouseenter/leave

Adding mouseenter and mouseleave Events

State:
CLOSED
Product:
HISTORICAL: DOM3 Events [All Bugs and Issues use Bugzilla: http://tinyurl.com/Bugs-DOM3Events]
Raised by:
Doug Schepers
Opened on:
2008-06-18
Description:
'mouseenter' and 'mouseleave' events are similar to 'mouseover' and 'mouseout' events, but do not bubble. Should we add these to DOM3 Events (or a later related spec)?

<http://msdn.microsoft.com/workshop/author/dhtml/reference/events/onmouseenter.asp>
<http://msdn.microsoft.com/workshop/author/dhtml/reference/events/onmouseleave.asp>

Björn points out that it is not the bubbling that is important, but the manner in which the event is targeted relative to the descendant or ancestor; in <http://lists.w3.org/Archives/Public/public-webapi/2008May/0111.html>, he says, "This actually has little to do with the bubbling behavior but with the
fact that the mouse events are always targeted at the most deeply nested
element, while mouseenter and mouseleave are targeted at all ancestors
not shared by the two relevant event targets. So moving the cursor from
$a to $b you get (in this order):

mouseleave to `$a/ancestor-or-self::* except $b/ancestor-or-self::*`
mouseenter to `$b/ancestor-or-self::* except $a/ancestor-or-self::*`

in, respectively, reverse document order and document order. This means
for example that you get no mouseleave event when moving from an element
to one of its descendants, and no mouseenter event when moving from an
element to one of its ancestors."

Related Actions Items:
No related actions
Related emails:
  1. [widgets] Draft minutes from 7 May 2009 Voice Conference (from art.barstow@nokia.com on 2009-05-07)
  2. DOM3 Events Telcon Agenda, 16 July 2008 (Today!!) (from schepers@w3.org on 2008-07-16)
  3. DOM3 Events Telcon Agenda, 9 July 2008 (Today!!) (from schepers@w3.org on 2008-07-09)
  4. ISSUE-8 (mouseenter/leave): Adding mouseenter and mouseleave Events [DOM3 Events] (from sysbot+tracker@w3.org on 2008-06-18)

Related notes:

http://lists.w3.org/Archives/Public/public-webapi/2008May/0088.html

Doug Schepers, 18 Jun 2008, 04:43:11

http://lists.w3.org/Archives/Public/public-webapi/2008May/0111.html

Doug Schepers, 18 Jun 2008, 04:43:24

http://lists.w3.org/Archives/Public/public-webapps/2008AprJun/0180.html

Doug Schepers, 18 Jun 2008, 04:43:34

Added and clarified

Doug Schepers, 19 Oct 2009, 05:28:19

Display change log ATOM feed


Chair, Staff Contact
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: 8.html,v 1.1 2016/01/25 10:26:23 carine Exp $