<?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: YUI 中 onDOMReady 的 iframe bug</title>
	<atom:link href="http://lifesinger.org/blog/2009/08/yui-ondomready-iframe-bug/feed/" rel="self" type="application/rss+xml" />
	<link>http://lifesinger.org/blog/2009/08/yui-ondomready-iframe-bug/</link>
	<description>关注用户体验、前端开发，记录生活点滴、岁月足迹。</description>
	<lastBuildDate>Wed, 08 Sep 2010 15:14:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: lifesinger</title>
		<link>http://lifesinger.org/blog/2009/08/yui-ondomready-iframe-bug/comment-page-1/#comment-3449</link>
		<dc:creator>lifesinger</dc:creator>
		<pubDate>Fri, 27 Nov 2009 05:57:40 +0000</pubDate>
		<guid isPermaLink="false">http://lifesinger.org/blog/?p=2049#comment-3449</guid>
		<description>@icerain: 你的代码不是 domready, 而是 window.onload</description>
		<content:encoded><![CDATA[<p>@icerain: 你的代码不是 domready, 而是 window.onload</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: icerain</title>
		<link>http://lifesinger.org/blog/2009/08/yui-ondomready-iframe-bug/comment-page-1/#comment-3444</link>
		<dc:creator>icerain</dc:creator>
		<pubDate>Fri, 27 Nov 2009 02:49:32 +0000</pubDate>
		<guid isPermaLink="false">http://lifesinger.org/blog/?p=2049#comment-3444</guid>
		<description>推荐使用以下方法实现:

window.wby&#124;&#124;(window[&#039;wby&#039;]={});
	wby.VERSION =&quot;1.0.1&quot;;
	//DOM装载完毕
	wby.dom={
		onload:function(c) {	
			if (window.addEventListener)
				window.addEventListener(&quot;load&quot;, c, false);
			else if (window.attachEvent)
				window.attachEvent(&quot;onload&quot;, c);
			else {
				var d = window[&quot;onload&quot;];
				window[&quot;onload&quot;] = d != f ? this.ca( [ c, d ]) : c
			}
		},
		ca:function(a) {	
			return function() {
				for ( var b = 0; b &lt; a.length; b++)
					a[b]()
			}
		}
	}
	wby.ready=wby.dom.onload; //DOM准备就绪


在使用的时候只需要如下: 

wby.ready(function(){
      //你的代码

});</description>
		<content:encoded><![CDATA[<p>推荐使用以下方法实现:</p>
<p>window.wby||(window['wby']={});<br />
	wby.VERSION =&#8221;1.0.1&#8243;;<br />
	//DOM装载完毕<br />
	wby.dom={<br />
		onload:function(c) {<br />
			if (window.addEventListener)<br />
				window.addEventListener(&#8220;load&#8221;, c, false);<br />
			else if (window.attachEvent)<br />
				window.attachEvent(&#8220;onload&#8221;, c);<br />
			else {<br />
				var d = window["onload"];<br />
				window["onload"] = d != f ? this.ca( [ c, d ]) : c<br />
			}<br />
		},<br />
		ca:function(a) {<br />
			return function() {<br />
				for ( var b = 0; b &lt; a.length; b++)<br />
					a[b]()<br />
			}<br />
		}<br />
	}<br />
	wby.ready=wby.dom.onload; //DOM准备就绪</p>
<p>在使用的时候只需要如下: </p>
<p>wby.ready(function(){<br />
      //你的代码</p>
<p>});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 天堂左我往右</title>
		<link>http://lifesinger.org/blog/2009/08/yui-ondomready-iframe-bug/comment-page-1/#comment-2566</link>
		<dc:creator>天堂左我往右</dc:creator>
		<pubDate>Sun, 13 Sep 2009 09:24:10 +0000</pubDate>
		<guid isPermaLink="false">http://lifesinger.org/blog/?p=2049#comment-2566</guid>
		<description>@vapour
ie8没问题的...</description>
		<content:encoded><![CDATA[<p>@vapour<br />
ie8没问题的&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 天堂左我往右</title>
		<link>http://lifesinger.org/blog/2009/08/yui-ondomready-iframe-bug/comment-page-1/#comment-2565</link>
		<dc:creator>天堂左我往右</dc:creator>
		<pubDate>Sun, 13 Sep 2009 08:55:39 +0000</pubDate>
		<guid isPermaLink="false">http://lifesinger.org/blog/?p=2049#comment-2565</guid>
		<description>貌似早期的jq还用typeof window.frameElement === &quot;undefined&quot;判断
没iframe的时候window.frameElement为null...</description>
		<content:encoded><![CDATA[<p>貌似早期的jq还用typeof window.frameElement === &#8220;undefined&#8221;判断<br />
没iframe的时候window.frameElement为null&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J.et wong</title>
		<link>http://lifesinger.org/blog/2009/08/yui-ondomready-iframe-bug/comment-page-1/#comment-2529</link>
		<dc:creator>J.et wong</dc:creator>
		<pubDate>Wed, 09 Sep 2009 00:02:35 +0000</pubDate>
		<guid isPermaLink="false">http://lifesinger.org/blog/?p=2049#comment-2529</guid>
		<description>Thanks,正好通過這個解決了一個iframe的問題</description>
		<content:encoded><![CDATA[<p>Thanks,正好通過這個解決了一個iframe的問題</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 天堂左我往右</title>
		<link>http://lifesinger.org/blog/2009/08/yui-ondomready-iframe-bug/comment-page-1/#comment-1937</link>
		<dc:creator>天堂左我往右</dc:creator>
		<pubDate>Wed, 05 Aug 2009 13:45:07 +0000</pubDate>
		<guid isPermaLink="false">http://lifesinger.org/blog/?p=2049#comment-1937</guid>
		<description>在 YUI 2.8 中，该 bug 已修复：Ticket #2008289. 从 bug 被提交，到问题解决，历时一年多，囧。

为啥用了一年多呢...</description>
		<content:encoded><![CDATA[<p>在 YUI 2.8 中，该 bug 已修复：Ticket #2008289. 从 bug 被提交，到问题解决，历时一年多，囧。</p>
<p>为啥用了一年多呢&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wangxiao</title>
		<link>http://lifesinger.org/blog/2009/08/yui-ondomready-iframe-bug/comment-page-1/#comment-1916</link>
		<dc:creator>wangxiao</dc:creator>
		<pubDate>Tue, 04 Aug 2009 09:03:28 +0000</pubDate>
		<guid isPermaLink="false">http://lifesinger.org/blog/?p=2049#comment-1916</guid>
		<description>方便请教博主一个问题吗？为什么淘宝页面的DOCTYPE从XHTML1.1 transactional逐渐转为HTML4.01 Strict定义？ 各浏览器对二种DTD定义下文档解释的差异在什么地方？ 找不到相关资料，你们对此应该有过详细的研究和测试，希望得到您的帮助，谢谢！</description>
		<content:encoded><![CDATA[<p>方便请教博主一个问题吗？为什么淘宝页面的DOCTYPE从XHTML1.1 transactional逐渐转为HTML4.01 Strict定义？ 各浏览器对二种DTD定义下文档解释的差异在什么地方？ 找不到相关资料，你们对此应该有过详细的研究和测试，希望得到您的帮助，谢谢！</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vapour</title>
		<link>http://lifesinger.org/blog/2009/08/yui-ondomready-iframe-bug/comment-page-1/#comment-1905</link>
		<dc:creator>vapour</dc:creator>
		<pubDate>Mon, 03 Aug 2009 23:56:32 +0000</pubDate>
		<guid isPermaLink="false">http://lifesinger.org/blog/?p=2049#comment-1905</guid>
		<description>IE8支持doScroll吗？我测试一个例子在IE6/IE7中好用。在IE8中doScroll没反应</description>
		<content:encoded><![CDATA[<p>IE8支持doScroll吗？我测试一个例子在IE6/IE7中好用。在IE8中doScroll没反应</p>
]]></content:encoded>
	</item>
</channel>
</rss>
