ISSUE-8
mouseenter/leave
Adding mouseenter and mouseleave Events
- State:
- CLOSED
- Product:
- DOM3 Events
- 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:
- [widgets] Draft minutes from 7 May 2009 Voice Conference (from art.barstow@nokia.com on 2009-05-07)
- DOM3 Events Telcon Agenda, 16 July 2008 (Today!!) (from schepers@w3.org on 2008-07-16)
- DOM3 Events Telcon Agenda, 9 July 2008 (Today!!) (from schepers@w3.org on 2008-07-09)
- ISSUE-8 (mouseenter/leave): Adding mouseenter and mouseleave Events [DOM3 Events] (from sysbot+tracker@w3.org on 2008-06-18)
Related notes:
2008-06-18 04:43:11: http://lists.w3.org/Archives/Public/public-webapi/2008May/0088.html [Doug Schepers]
2008-06-18 04:43:24: http://lists.w3.org/Archives/Public/public-webapi/2008May/0111.html [Doug Schepers]
2008-06-18 04:43:34: http://lists.w3.org/Archives/Public/public-webapps/2008AprJun/0180.html [Doug Schepers]
2009-10-19 05:28:19: Added and clarified [Doug Schepers]
Display change log