2007/3/16, Gareth Hay &lt;<a href="mailto:gazhay@gmail.com">gazhay@gmail.com</a>&gt;:<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&#39;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>&nbsp;</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>&gt; This is a pretty well known issue, and a constant stumbling block.<br>&gt; There are use cases for using the capture/bubble stuff[1].&nbsp;&nbsp;However,<br>&gt; by far, the most common need is for simple one-off&#39;s, and the bubbling
<br>&gt; really gets in the way.&nbsp;&nbsp;The issue is explained quite well on PPK&#39;s<br>&gt; site:<br>&gt; &lt;<a href="http://www.quirksmode.org/js/events_order.html">http://www.quirksmode.org/js/events_order.html</a>&gt;<br>
&gt; &lt;<a href="http://www.quirksmode.org/js/events_mouse.html">http://www.quirksmode.org/js/events_mouse.html</a>&gt; &lt;-- covers mouseenter<br>&gt; and mouseleave and why it&#39;s better (because it explains how tedious
<br>&gt; the traditional model is first.)<br>&gt;<br>&gt; The bottom line is that introducing mouseenter and mouseleave will<br>&gt; reduce a lot of CPU cycles, and make authoring a lot easier.<br>&gt;<br>&gt; [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>&gt; dhtml-drag-and-drop<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://icant.co.uk/sandbox/eventdelegation/">http://icant.co.uk/sandbox/eventdelegation/</a><br>&gt;<br>&gt; -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>