<?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>评论：在HTML中获取正确的URL属性值</title>
	<atom:link href="http://dancewithnet.com/2009/07/27/get-right-url-from-html/feed/" rel="self" type="application/rss+xml" />
	<link>http://dancewithnet.com/2009/07/27/get-right-url-from-html/</link>
	<description>WEB Design{HTML:CSS:Javascript:DOM:AJAX:PHP:Usability}/Viewpoint/Photo/Food/Mood</description>
	<lastBuildDate>Fri, 04 May 2012 20:16:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>来自：秦歌</title>
		<link>http://dancewithnet.com/2009/07/27/get-right-url-from-html/comment-page-1/#comment-222990</link>
		<dc:creator>秦歌</dc:creator>
		<pubDate>Sat, 12 Dec 2009 15:45:53 +0000</pubDate>
		<guid isPermaLink="false">http://dancewithnet.com/?p=1462#comment-222990</guid>
		<description>@mefly：我想你应该没有认真看这篇blog，这里面的内容就是告诉你如何得到想要的结果。IE8在标准模式下getAttribute得到的是属性值，在怪癖模式下IE8的解析模式和IE5一致而得到是绝对URL，所以和是否使用XHTML无关。你完全可以通过Element.href来兼容IE下两个模式，或者使用本文getQualifyURL函数。</description>
		<content:encoded><![CDATA[<p>@mefly：我想你应该没有认真看这篇blog，这里面的内容就是告诉你如何得到想要的结果。IE8在标准模式下getAttribute得到的是属性值，在怪癖模式下IE8的解析模式和IE5一致而得到是绝对URL，所以和是否使用XHTML无关。你完全可以通过Element.href来兼容IE下两个模式，或者使用本文getQualifyURL函数。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：mefly</title>
		<link>http://dancewithnet.com/2009/07/27/get-right-url-from-html/comment-page-1/#comment-222980</link>
		<dc:creator>mefly</dc:creator>
		<pubDate>Sat, 12 Dec 2009 07:31:06 +0000</pubDate>
		<guid isPermaLink="false">http://dancewithnet.com/?p=1462#comment-222980</guid>
		<description>问楼主个问题，我的项目中是使用的ie8,可是页面头加入了
 这一句，所以
&lt;a href=&quot;example.php&quot; rel=&quot;nofollow&quot;&gt;http://dancewithnet.com/&lt;/a&gt;

var oA = document.getElementById(&#039;example-a&#039;);
alert(oA.getAttribute(&#039;href&#039;));

用你的代码试了下，只是得到a 的相对url ，如果DOCTYPE 不用xhtml就没有问题，难道只能放弃xhtml1.0 ？？</description>
		<content:encoded><![CDATA[<p>问楼主个问题，我的项目中是使用的ie8,可是页面头加入了<br />
 这一句，所以<br />
&lt;a href=&#8221;example.php&#8221; rel=&#8221;nofollow&#8221;&gt;http://dancewithnet.com/&lt;/a&gt;</p>
<p>var oA = document.getElementById(&#8216;example-a&#8217;);<br />
alert(oA.getAttribute(&#8216;href&#8217;));</p>
<p>用你的代码试了下，只是得到a 的相对url ，如果DOCTYPE 不用xhtml就没有问题，难道只能放弃xhtml1.0 ？？</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：在HTML中获取正确的URL属性值 &#124; 极数博客</title>
		<link>http://dancewithnet.com/2009/07/27/get-right-url-from-html/comment-page-1/#comment-221866</link>
		<dc:creator>在HTML中获取正确的URL属性值 &#124; 极数博客</dc:creator>
		<pubDate>Mon, 30 Nov 2009 11:38:16 +0000</pubDate>
		<guid isPermaLink="false">http://dancewithnet.com/?p=1462#comment-221866</guid>
		<description>[...] 原文：http://dancewithnet.com/2009/07/27/get-right-url-from-html/ [...]</description>
		<content:encoded><![CDATA[<p>[...] 原文：http://dancewithnet.com/2009/07/27/get-right-url-from-html/ [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：天堂左我往右</title>
		<link>http://dancewithnet.com/2009/07/27/get-right-url-from-html/comment-page-1/#comment-215398</link>
		<dc:creator>天堂左我往右</dc:creator>
		<pubDate>Wed, 09 Sep 2009 09:35:32 +0000</pubDate>
		<guid isPermaLink="false">http://dancewithnet.com/?p=1462#comment-215398</guid>
		<description>秦​​秦​​兄​​,​​小​​弟​​眼​​瞎​​…</description>
		<content:encoded><![CDATA[<p>秦​​秦​​兄​​,​​小​​弟​​眼​​瞎​​…</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：秦歌</title>
		<link>http://dancewithnet.com/2009/07/27/get-right-url-from-html/comment-page-1/#comment-215162</link>
		<dc:creator>秦歌</dc:creator>
		<pubDate>Tue, 08 Sep 2009 12:33:19 +0000</pubDate>
		<guid isPermaLink="false">http://dancewithnet.com/?p=1462#comment-215162</guid>
		<description>我晕，文章中不是说的很清楚么，演示示例中在每个浏览器中都有结果，只是有些符合预期，有些不符合，这个和具体的标签有关，把每个浏览器的每种情况都列出来意义不大，如果需要自己用浏览器看一遍就知道了，本文告诉的是通用的解决方案。</description>
		<content:encoded><![CDATA[<p>我晕，文章中不是说的很清楚么，演示示例中在每个浏览器中都有结果，只是有些符合预期，有些不符合，这个和具体的标签有关，把每个浏览器的每种情况都列出来意义不大，如果需要自己用浏览器看一遍就知道了，本文告诉的是通用的解决方案。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：天堂左我往右</title>
		<link>http://dancewithnet.com/2009/07/27/get-right-url-from-html/comment-page-1/#comment-215147</link>
		<dc:creator>天堂左我往右</dc:creator>
		<pubDate>Tue, 08 Sep 2009 10:35:34 +0000</pubDate>
		<guid isPermaLink="false">http://dancewithnet.com/?p=1462#comment-215147</guid>
		<description>http://dancewithnet.com/lab/2009/get-right-url-from-html/index.html
演示示例没写哪些结果对应哪些浏览器呀</description>
		<content:encoded><![CDATA[<p><a href="http://dancewithnet.com/lab/2009/get-right-url-from-html/index.html" rel="nofollow">http://dancewithnet.com/lab/2009/get-right-url-from-html/index.html</a><br />
演示示例没写哪些结果对应哪些浏览器呀</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Data URI 和 MHTML @ 随网之舞</title>
		<link>http://dancewithnet.com/2009/07/27/get-right-url-from-html/comment-page-1/#comment-207188</link>
		<dc:creator>Data URI 和 MHTML @ 随网之舞</dc:creator>
		<pubDate>Sat, 15 Aug 2009 16:58:10 +0000</pubDate>
		<guid isPermaLink="false">http://dancewithnet.com/?p=1462#comment-207188</guid>
		<description>[...] &#171; 在HTML中获取正确的URL属性值 [...]</description>
		<content:encoded><![CDATA[<p>[...] &laquo; 在HTML中获取正确的URL属性值 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Mr.Foprc</title>
		<link>http://dancewithnet.com/2009/07/27/get-right-url-from-html/comment-page-1/#comment-205208</link>
		<dc:creator>Mr.Foprc</dc:creator>
		<pubDate>Mon, 10 Aug 2009 06:36:06 +0000</pubDate>
		<guid isPermaLink="false">http://dancewithnet.com/?p=1462#comment-205208</guid>
		<description>&lt;blockquote&gt;
这​​个​​麻​​烦​​没​​怎​​么​​碰​​到​​过​​。
&lt;/blockquote&gt;

各家浏览器的BOM不统一，以及对W3C标准的理解不一，导致了很多前端开发的困扰啊。</description>
		<content:encoded><![CDATA[<blockquote><p>
这​​个​​麻​​烦​​没​​怎​​么​​碰​​到​​过​​。
</p></blockquote>
<p>各家浏览器的BOM不统一，以及对W3C标准的理解不一，导致了很多前端开发的困扰啊。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：布里斯班</title>
		<link>http://dancewithnet.com/2009/07/27/get-right-url-from-html/comment-page-1/#comment-203789</link>
		<dc:creator>布里斯班</dc:creator>
		<pubDate>Tue, 28 Jul 2009 13:48:31 +0000</pubDate>
		<guid isPermaLink="false">http://dancewithnet.com/?p=1462#comment-203789</guid>
		<description>还真没有考虑过弄个url会那么麻烦~</description>
		<content:encoded><![CDATA[<p>还真没有考虑过弄个url会那么麻烦~</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：SemYo</title>
		<link>http://dancewithnet.com/2009/07/27/get-right-url-from-html/comment-page-1/#comment-203783</link>
		<dc:creator>SemYo</dc:creator>
		<pubDate>Tue, 28 Jul 2009 09:09:31 +0000</pubDate>
		<guid isPermaLink="false">http://dancewithnet.com/?p=1462#comment-203783</guid>
		<description>好麻烦的</description>
		<content:encoded><![CDATA[<p>好麻烦的</p>
]]></content:encoded>
	</item>
</channel>
</rss>

