<?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: Dom事件的srcTarget,strElement探幽</title>
	<atom:link href="http://www.laruence.com/2008/07/18/124.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.laruence.com/2008/07/18/124.html</link>
	<description>PHP语言, PHP扩展, Zend引擎相关的研究,技术,新闻分享 - 左手代码 右手诗</description>
	<lastBuildDate>Thu, 09 Feb 2012 12:31:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: RainChen</title>
		<link>http://www.laruence.com/2008/07/18/124.html/comment-page-1#comment-855</link>
		<dc:creator>RainChen</dc:creator>
		<pubDate>Sat, 27 Dec 2008 05:00:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=124#comment-855</guid>
		<description>这是事件的冒泡问题
IE是由外到内，FF刚好相反是由内到外的触发顺序，是否冒泡是可以在用attach event时设定。
详细见
http://www.quirksmode.org/js/events_order.html</description>
		<content:encoded><![CDATA[<p>这是事件的冒泡问题<br />
IE是由外到内，FF刚好相反是由内到外的触发顺序，是否冒泡是可以在用attach event时设定。<br />
详细见<br />
<a href="http://www.quirksmode.org/js/events_order.html" rel="nofollow">http://www.quirksmode.org/js/events_order.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bun Wong</title>
		<link>http://www.laruence.com/2008/07/18/124.html/comment-page-1#comment-357</link>
		<dc:creator>Bun Wong</dc:creator>
		<pubDate>Tue, 18 Nov 2008 01:55:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=124#comment-357</guid>
		<description>恩，我根据你的例子做过测试，在 Firefox 下面 a 是不会触发 onclick 的，但是你的那个 div 是如何绑定 blur 事件的？我这样写无办法绑定到事件哦。

这是自写的 bind 方法:
function bind(o, type, handle) {
  var el = document.getElementById(o);
  if (el) {
    if (el.addEventListener) {
      el.addEventListener(type, handle, false);
    } else {
      el.attachEvent(&#039;on&#039; + type, handle);
    }
  }
}

bind(&#039;div&#039;, &#039;blur&#039;, function(e) {...});

这样，div 的 blur 无办法触发啊，我看过 dhtml 好像 div 没有 blur 事件的哦，愿赐教…</description>
		<content:encoded><![CDATA[<p>恩，我根据你的例子做过测试，在 Firefox 下面 a 是不会触发 onclick 的，但是你的那个 div 是如何绑定 blur 事件的？我这样写无办法绑定到事件哦。</p>
<p>这是自写的 bind 方法:<br />
function bind(o, type, handle) {<br />
  var el = document.getElementById(o);<br />
  if (el) {<br />
    if (el.addEventListener) {<br />
      el.addEventListener(type, handle, false);<br />
    } else {<br />
      el.attachEvent(&#8216;on&#8217; + type, handle);<br />
    }<br />
  }<br />
}</p>
<p>bind(&#8216;div&#8217;, &#8216;blur&#8217;, function(e) {&#8230;});</p>
<p>这样，div 的 blur 无办法触发啊，我看过 dhtml 好像 div 没有 blur 事件的哦，愿赐教…</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 雪候鸟</title>
		<link>http://www.laruence.com/2008/07/18/124.html/comment-page-1#comment-355</link>
		<dc:creator>雪候鸟</dc:creator>
		<pubDate>Mon, 17 Nov 2008 07:46:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=124#comment-355</guid>
		<description>问题是a标签上的click事件处理器被触发了。</description>
		<content:encoded><![CDATA[<p>问题是a标签上的click事件处理器被触发了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bun Wong</title>
		<link>http://www.laruence.com/2008/07/18/124.html/comment-page-1#comment-354</link>
		<dc:creator>Bun Wong</dc:creator>
		<pubDate>Mon, 17 Nov 2008 07:17:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=124#comment-354</guid>
		<description>你这个例子是先触发 blur，所以 a 隐藏了，因此 a 是压根不会触发任何东东 (都隐藏了，你还 click 啥)。我在 Firefox 下面测试过，确实如此，我觉得跟事件机制没有任何关系。</description>
		<content:encoded><![CDATA[<p>你这个例子是先触发 blur，所以 a 隐藏了，因此 a 是压根不会触发任何东东 (都隐藏了，你还 click 啥)。我在 Firefox 下面测试过，确实如此，我觉得跟事件机制没有任何关系。</p>
]]></content:encoded>
	</item>
</channel>
</rss>

