<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Event delegation with JavaScript</title>
	<atom:link href="http://robertnyman.com/2008/05/04/event-delegation-with-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://robertnyman.com/2008/05/04/event-delegation-with-javascript/</link>
	<description>Web development and Internet trends</description>
	<lastBuildDate>Wed, 17 Mar 2010 04:15:00 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Performance of jQuery Live events &#171; bjarlestam</title>
		<link>http://robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-612389</link>
		<dc:creator>Performance of jQuery Live events &#171; bjarlestam</dc:creator>
		<pubDate>Mon, 30 Nov 2009 20:00:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-612389</guid>
		<description>[...]  Live events is a new feature in jQuery 1.3. It could be used as an alternative to traditional event delegation techniques. It provides a convenient way to implement event delegation. The following code will bind an [...]</description>
		<content:encoded><![CDATA[<p>[...]  Live events is a new feature in jQuery 1.3. It could be used as an alternative to traditional event delegation techniques. It provides a convenient way to implement event delegation. The following code will bind an [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gestión de eventos vs Delegación de eventos : Blogografia</title>
		<link>http://robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-610805</link>
		<dc:creator>Gestión de eventos vs Delegación de eventos : Blogografia</dc:creator>
		<pubDate>Thu, 19 Nov 2009 18:20:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-610805</guid>
		<description>[...] Event Delegation with javascript [...]</description>
		<content:encoded><![CDATA[<p>[...] Event Delegation with javascript [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Event delegation no javascript &#171; Atividades e Interesses</title>
		<link>http://robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-599253</link>
		<dc:creator>Event delegation no javascript &#171; Atividades e Interesses</dc:creator>
		<pubDate>Thu, 27 Aug 2009 01:30:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-599253</guid>
		<description>[...] tópico recente, a apresentação deste conceito já foi realizado por Peter Paul-Kock, Rob Cherny, Robert Nyman, Nicholas C. Zakas, Dan Webb, entre outros. Não vou me extender sobre a explicação das fases dos [...]</description>
		<content:encoded><![CDATA[<p>[...] tópico recente, a apresentação deste conceito já foi realizado por Peter Paul-Kock, Rob Cherny, Robert Nyman, Nicholas C. Zakas, Dan Webb, entre outros. Não vou me extender sobre a explicação das fases dos [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Other Brian Whitmer: jQuery 1.3 delegation</title>
		<link>http://robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-582337</link>
		<dc:creator>The Other Brian Whitmer: jQuery 1.3 delegation</dc:creator>
		<pubDate>Tue, 12 May 2009 23:21:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-582337</guid>
		<description>[...] If you aren&#039;t familiar with javascript event delegation, this probably won&#039;t mean a lot to you (here&#039;s a quick tutorial).I went poking around in the jQuery revisions because I haven&#039;t found hardly any details on what [...]</description>
		<content:encoded><![CDATA[<p>[...] If you aren&#8217;t familiar with javascript event delegation, this probably won&#8217;t mean a lot to you (here&#8217;s a quick tutorial).I went poking around in the jQuery revisions because I haven&#8217;t found hardly any details on what [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Summer break - Robert&#8217;s talk - Web development and Internet trends</title>
		<link>http://robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-301969</link>
		<dc:creator>Summer break - Robert&#8217;s talk - Web development and Internet trends</dc:creator>
		<pubDate>Thu, 12 Jun 2008 23:20:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-301969</guid>
		<description>[...] Event delegation with JavaScript [...]</description>
		<content:encoded><![CDATA[<p>[...] Event delegation with JavaScript [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-267885</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Thu, 08 May 2008 08:33:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-267885</guid>
		<description>Diego,

Sounds great! I think it is a good idea to collaborate about this and together reach the best solution! I&#039;ll talk with the team about this.</description>
		<content:encoded><![CDATA[<p>Diego,</p>
<p>Sounds great! I think it is a good idea to collaborate about this and together reach the best solution! I&#8217;ll talk with the team about this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diego Perini</title>
		<link>http://robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-267660</link>
		<dc:creator>Diego Perini</dc:creator>
		<pubDate>Thu, 08 May 2008 00:59:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-267660</guid>
		<description>Robert,
nice introduction for your event delegation in DOMAssistant. When ?

You may see my NWEvents at work in an event delegation test here:

   http://javascript.nwbox.com/NWEvents/delegates.html

Sorry for the fuzziness of the sample, it was just a combined test for all the quirks I found during development and to stress my NWMatcher selector engine mixed in with event delegation.

The best thing is that I even don&#039;t need an &quot;onload&quot; or an &quot;onReady&quot; event to attach functionality to the page, this avoids the problem of &quot;early page enlivenment&quot; you talked about in another post.

Well since you already have a nice Event Manager it shouldn&#039;t be too difficult to implement the &quot;Light&quot; part of event delegation, it will prove extremely useful in a project like DOMAssistant. And since I see you have built a very fast selector engine too it will combine perfectly.

Let me know, I will be happy to give info on my code. You can grab the latest versions from Google Code SVN.

Diego Perini</description>
		<content:encoded><![CDATA[<p>Robert,<br />
nice introduction for your event delegation in DOMAssistant. When ?</p>
<p>You may see my NWEvents at work in an event delegation test here:</p>
<p>   <a href="http://javascript.nwbox.com/NWEvents/delegates.html" rel="nofollow">http://javascript.nwbox.com/NWEvents/delegates.html</a></p>
<p>Sorry for the fuzziness of the sample, it was just a combined test for all the quirks I found during development and to stress my NWMatcher selector engine mixed in with event delegation.</p>
<p>The best thing is that I even don&#8217;t need an &#8220;onload&#8221; or an &#8220;onReady&#8221; event to attach functionality to the page, this avoids the problem of &#8220;early page enlivenment&#8221; you talked about in another post.</p>
<p>Well since you already have a nice Event Manager it shouldn&#8217;t be too difficult to implement the &#8220;Light&#8221; part of event delegation, it will prove extremely useful in a project like DOMAssistant. And since I see you have built a very fast selector engine too it will combine perfectly.</p>
<p>Let me know, I will be happy to give info on my code. You can grab the latest versions from Google Code SVN.</p>
<p>Diego Perini</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-265486</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Mon, 05 May 2008 15:38:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-265486</guid>
		<description>Andreas,

I think it&#039;s important to apply the events at the best place in the HTML hierarchy; this is, of course, heavily context-dependent. The &lt;code&gt;body&lt;/code&gt; might be suitable in some cases, but generally I think it&#039;s overkill. Generally, I think it&#039;s ok, for instance, to have one event for the navigation, one for the content etc.

It&#039;s a delicate balance which can result in slower times, if it&#039;s applied too high up in a page with a lot of elements. Basically, it&#039;s about being pragmatic. :-)


Morgan,

Good to see that we&#039;re on the same page! I actually linked to Chris&#039; example above, where he does event delegation with YUI.</description>
		<content:encoded><![CDATA[<p>Andreas,</p>
<p>I think it&#8217;s important to apply the events at the best place in the HTML hierarchy; this is, of course, heavily context-dependent. The <code>body</code> might be suitable in some cases, but generally I think it&#8217;s overkill. Generally, I think it&#8217;s ok, for instance, to have one event for the navigation, one for the content etc.</p>
<p>It&#8217;s a delicate balance which can result in slower times, if it&#8217;s applied too high up in a page with a lot of elements. Basically, it&#8217;s about being pragmatic. <img src='http://robertnyman.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Morgan,</p>
<p>Good to see that we&#8217;re on the same page! I actually linked to Chris&#8217; example above, where he does event delegation with YUI.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Morgan Roderick</title>
		<link>http://robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-265441</link>
		<dc:creator>Morgan Roderick</dc:creator>
		<pubDate>Mon, 05 May 2008 14:13:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-265441</guid>
		<description>Very nice summary Robert!

One of the very nice aspects of using event delegation, which is somewhat understated in the post, is that your code also becomes a lot easier to maintain... even more so, when compared to inline event handlers. 

It does take a little while to wrap your head around, but once you&#039;ve got a firm grasp of the technique, the clarity of your code will improve quite a lot, and updating it will become easier.

Oh, and not to forget ... using event delegates, makes for happy Ajax development, where you can assign a delegate on a parent element, and just replace it&#039;s content with Ajax, and all you spiffy event based javascripty goodness just works :)

Chris Heilmann created a small experiment a couple of years ago, that has inspired me to change how I think about events, when doing scripting for browsers.

http://icant.co.uk/sandbox/eventdelegation/</description>
		<content:encoded><![CDATA[<p>Very nice summary Robert!</p>
<p>One of the very nice aspects of using event delegation, which is somewhat understated in the post, is that your code also becomes a lot easier to maintain&#8230; even more so, when compared to inline event handlers. </p>
<p>It does take a little while to wrap your head around, but once you&#8217;ve got a firm grasp of the technique, the clarity of your code will improve quite a lot, and updating it will become easier.</p>
<p>Oh, and not to forget &#8230; using event delegates, makes for happy Ajax development, where you can assign a delegate on a parent element, and just replace it&#8217;s content with Ajax, and all you spiffy event based javascripty goodness just works <img src='http://robertnyman.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Chris Heilmann created a small experiment a couple of years ago, that has inspired me to change how I think about events, when doing scripting for browsers.</p>
<p><a href="http://icant.co.uk/sandbox/eventdelegation/" rel="nofollow">http://icant.co.uk/sandbox/eventdelegation/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas</title>
		<link>http://robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-265432</link>
		<dc:creator>Andreas</dc:creator>
		<pubDate>Mon, 05 May 2008 13:55:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-265432</guid>
		<description>Another benefit of event delegation is that events are applied to elements created _after_ the events were applied (like ajax-generated content) as well as the elements that were there from the start.

Is there no chance of things ever getting slower because of ED? If you put every onclick-event on the body instead of the actual elements that users should click, won&#039;t it take a sec or so to sort out which callback to run whereas if the event was set on the actual element being clicked it would simply run it straight away?

I&#039;m curious because I&#039;m using &lt;a href=&quot;http://exscale.se/archives/2008/02/11/jquery-image-zoom-plug-in/&quot; rel=&quot;nofollow&quot;&gt;my ImgZoom plug-in&lt;/a&gt; (which uses ED) on a site that already has loads of other ED (up to the same (body) elment) and when I click an image now it takes a sec or so before it shows up whereas on my &lt;a href=&quot;http://exscale.se/__files/jquery/image-zoom.htm&quot; rel=&quot;nofollow&quot;&gt;demo-page&lt;/a&gt; you hardly got time to blink.</description>
		<content:encoded><![CDATA[<p>Another benefit of event delegation is that events are applied to elements created _after_ the events were applied (like ajax-generated content) as well as the elements that were there from the start.</p>
<p>Is there no chance of things ever getting slower because of ED? If you put every onclick-event on the body instead of the actual elements that users should click, won&#8217;t it take a sec or so to sort out which callback to run whereas if the event was set on the actual element being clicked it would simply run it straight away?</p>
<p>I&#8217;m curious because I&#8217;m using <a href="http://exscale.se/archives/2008/02/11/jquery-image-zoom-plug-in/" rel="nofollow">my ImgZoom plug-in</a> (which uses ED) on a site that already has loads of other ED (up to the same (body) elment) and when I click an image now it takes a sec or so before it shows up whereas on my <a href="http://exscale.se/__files/jquery/image-zoom.htm" rel="nofollow">demo-page</a> you hardly got time to blink.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-265374</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Mon, 05 May 2008 12:05:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-265374</guid>
		<description>Curtis,

Absolutely, with more advanced HTML or elements with margin etc, you do need to do some DOM traversing. DOMAssistant does exclude text nodes automatically, but to make it more efficient for advanced scenarios, I guess doing a sort of selector on the target and possible parent elements might be a good solution.

Tommy,

Peter-Paul Koch has written an article about &lt;a href=&quot;http://www.quirksmode.org/blog/archives/2008/04/delegating_the.html&quot; rel=&quot;nofollow&quot;&gt;event delegation with the focus and blur events&lt;/a&gt;, which is based on the techniques described by Curtis above. However, it would be nice to have event bubbling of all events, I think. Especially a lot of form scripting could be vastly improved.

And thanks for the congratulation, I&#039;ll cover that in my next post. And congratulations to you for spot #46. :-)

dAN,

Glad you liked it!</description>
		<content:encoded><![CDATA[<p>Curtis,</p>
<p>Absolutely, with more advanced HTML or elements with margin etc, you do need to do some DOM traversing. DOMAssistant does exclude text nodes automatically, but to make it more efficient for advanced scenarios, I guess doing a sort of selector on the target and possible parent elements might be a good solution.</p>
<p>Tommy,</p>
<p>Peter-Paul Koch has written an article about <a href="http://www.quirksmode.org/blog/archives/2008/04/delegating_the.html" rel="nofollow">event delegation with the focus and blur events</a>, which is based on the techniques described by Curtis above. However, it would be nice to have event bubbling of all events, I think. Especially a lot of form scripting could be vastly improved.</p>
<p>And thanks for the congratulation, I&#8217;ll cover that in my next post. And congratulations to you for spot #46. <img src='http://robertnyman.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>dAN,</p>
<p>Glad you liked it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tommy Olsson</title>
		<link>http://robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-265288</link>
		<dc:creator>Tommy Olsson</dc:creator>
		<pubDate>Mon, 05 May 2008 09:15:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-265288</guid>
		<description>@Curtis: I thought about using capture, but I needed the script to work in IE. Didn&#039;t know about focusin and focusout. It wasn&#039;t a big deal to assign the event listeners to the text fields instead, anyway. (It&#039;s a document that will only be used for a short period of time.)

BTW, congratulations to Robert for making #19 on Computer Sweden&#039;s list of Sweden&#039;s 75 top developers! :)</description>
		<content:encoded><![CDATA[<p>@Curtis: I thought about using capture, but I needed the script to work in IE. Didn&#8217;t know about focusin and focusout. It wasn&#8217;t a big deal to assign the event listeners to the text fields instead, anyway. (It&#8217;s a document that will only be used for a short period of time.)</p>
<p>BTW, congratulations to Robert for making #19 on Computer Sweden&#8217;s list of Sweden&#8217;s 75 top developers! <img src='http://robertnyman.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Curtis</title>
		<link>http://robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-265263</link>
		<dc:creator>Curtis</dc:creator>
		<pubDate>Mon, 05 May 2008 08:42:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-265263</guid>
		<description>@Tommy Olsson  
You can still use event delegation with focus and blur by making use of the capture phase (pass true as third param to addEventListener). Of course IE doesn&#039;t support this but is kind enough to provide focusin and focusout events which you can use to achieve the same effect.</description>
		<content:encoded><![CDATA[<p>@Tommy Olsson<br />
You can still use event delegation with focus and blur by making use of the capture phase (pass true as third param to addEventListener). Of course IE doesn&#8217;t support this but is kind enough to provide focusin and focusout events which you can use to achieve the same effect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dAN</title>
		<link>http://robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-265223</link>
		<dc:creator>dAN</dc:creator>
		<pubDate>Mon, 05 May 2008 07:35:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-265223</guid>
		<description>I&#039;d heard of event delegation but never quite grasped it, but I realise now how simple and useful it is. Cheers Robert!

dAN</description>
		<content:encoded><![CDATA[<p>I&#8217;d heard of event delegation but never quite grasped it, but I realise now how simple and useful it is. Cheers Robert!</p>
<p>dAN</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2008-05-05 &#124; Libin Pan</title>
		<link>http://robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-265187</link>
		<dc:creator>links for 2008-05-05 &#124; Libin Pan</dc:creator>
		<pubDate>Mon, 05 May 2008 06:39:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-265187</guid>
		<description>[...] Event delegation with JavaScript - Robertâ€™s talk - Web development and Internet trends Event delegation with JavaScript (tags: development event javascript) [...]</description>
		<content:encoded><![CDATA[<p>[...] Event delegation with JavaScript &#8211; Robertâ€™s talk &#8211; Web development and Internet trends Event delegation with JavaScript (tags: development event javascript) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tommy Olsson</title>
		<link>http://robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-265123</link>
		<dc:creator>Tommy Olsson</dc:creator>
		<pubDate>Mon, 05 May 2008 05:13:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-265123</guid>
		<description>This is a good method, but it doesn&#039;t work for all event types, only those that bubble.

Only this weekend I was writing what I expected to be a simple script for a page with 60(!) input fields where I needed things to happen each time one of those fields lost keyboard focus. I tried to use an event listener for the blur event on the parent, but it didn&#039;t work. It took me a while to realise that blur events don&#039;t bubble.</description>
		<content:encoded><![CDATA[<p>This is a good method, but it doesn&#8217;t work for all event types, only those that bubble.</p>
<p>Only this weekend I was writing what I expected to be a simple script for a page with 60(!) input fields where I needed things to happen each time one of those fields lost keyboard focus. I tried to use an event listener for the blur event on the parent, but it didn&#8217;t work. It took me a while to realise that blur events don&#8217;t bubble.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mixed's me2DAY</title>
		<link>http://robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-264990</link>
		<dc:creator>mixed's me2DAY</dc:creator>
		<pubDate>Mon, 05 May 2008 01:50:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-264990</guid>
		<description>&lt;strong&gt;??? ??...&lt;/strong&gt;

?? ???? ?? ?? event delegation....</description>
		<content:encoded><![CDATA[<p><strong>??? ??&#8230;</strong></p>
<p>?? ???? ?? ?? event delegation&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Curtis</title>
		<link>http://robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-264965</link>
		<dc:creator>Curtis</dc:creator>
		<pubDate>Mon, 05 May 2008 00:59:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-264965</guid>
		<description>It&#039;s not quite that simple -- you need to make sure that the event target is the element you want to take action on. In your demo, click just to the left or right of the link text to see the problem.

It&#039;s easy to workaround by either walking up the DOM tree using a while loop and parentNode (while being careful to go further then you need of course), on in this particular case, since you are only interested in actions on the anchor tag, simply add a conditional to check evt.eventTarget&#039;s node name (assuming DOMAssistant resolves events from text elements, which it appears it does do).</description>
		<content:encoded><![CDATA[<p>It&#8217;s not quite that simple &#8212; you need to make sure that the event target is the element you want to take action on. In your demo, click just to the left or right of the link text to see the problem.</p>
<p>It&#8217;s easy to workaround by either walking up the DOM tree using a while loop and parentNode (while being careful to go further then you need of course), on in this particular case, since you are only interested in actions on the anchor tag, simply add a conditional to check evt.eventTarget&#8217;s node name (assuming DOMAssistant resolves events from text elements, which it appears it does do).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nortypig &#187; Blog Archive &#187; Event Delegation with JavaScript</title>
		<link>http://robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-264879</link>
		<dc:creator>nortypig &#187; Blog Archive &#187; Event Delegation with JavaScript</dc:creator>
		<pubDate>Sun, 04 May 2008 22:08:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2008/05/04/event-delegation-with-javascript/#comment-264879</guid>
		<description>[...] to effectively use JavaScript Event Delegation to reduce code and increase [...]</description>
		<content:encoded><![CDATA[<p>[...] to effectively use JavaScript Event Delegation to reduce code and increase [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
