2007/3/16, Gareth Hay <<a href="mailto:gazhay@gmail.com">gazhay@gmail.com</a>>:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Well, the current W3C spec has relatedTarget specifically for these<br>use cases, so again I fail to see why adding convenient shorthand for<br>functionality is a good thing here.<br><br>If we try to cover everyone's use cases with easy functionality, the
<br>spec is going to be huge with lots of overlapping functions and<br>elements. To me this is simply a programming problem, which is easily<br>solved to the use cases suggested, and also the inverse of actually<br>wanting the bubble.
</blockquote><div><br><br>Well, there more examples like that that, which are very successful, like .innerHTML.<br><br>Regards,<br>Martijn <br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Gareth<br><br>On 16 Mar 2007, at 03:41, Benjamin West wrote:<br><br>> This is a pretty well known issue, and a constant stumbling block.<br>> There are use cases for using the capture/bubble stuff[1]. However,<br>> by far, the most common need is for simple one-off's, and the bubbling
<br>> really gets in the way. The issue is explained quite well on PPK's<br>> site:<br>> <<a href="http://www.quirksmode.org/js/events_order.html">http://www.quirksmode.org/js/events_order.html</a>><br>
> <<a href="http://www.quirksmode.org/js/events_mouse.html">http://www.quirksmode.org/js/events_mouse.html</a>> <-- covers mouseenter<br>> and mouseleave and why it's better (because it explains how tedious
<br>> the traditional model is first.)<br>><br>> The bottom line is that introducing mouseenter and mouseleave will<br>> reduce a lot of CPU cycles, and make authoring a lot easier.<br>><br>> [1] <a href="http://decafbad.com/blog/2006/10/31/event-delegation-based-">
http://decafbad.com/blog/2006/10/31/event-delegation-based-</a><br>> dhtml-drag-and-drop<br>> <a href="http://icant.co.uk/sandbox/eventdelegation/">http://icant.co.uk/sandbox/eventdelegation/</a><br>><br>> -Ben
<br><br></blockquote></div><br><br clear="all"><br>-- <br>Martijn Wargers<br>Help Mozilla!<br><a href="http://weblogs.mozillazine.org/qa/">http://weblogs.mozillazine.org/qa/</a><br><a href="http://www.mozilla.org/contribute/">
http://www.mozilla.org/contribute/</a>