<?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: form 元素内的字段 name 不要跟 form 属性名称一致</title>
	<atom:link href="http://chen.xianan.name/blog/2008/10/08/do-not-use-filed-name-same-as-form-attribute-name/feed/" rel="self" type="application/rss+xml" />
	<link>http://chen.xianan.name/blog/2008/10/08/do-not-use-filed-name-same-as-form-attribute-name/</link>
	<description>web 标准，前端开发，编程感悟，生活杂想</description>
	<lastBuildDate>Fri, 12 Mar 2010 08:20:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: 天堂左我往右</title>
		<link>http://chen.xianan.name/blog/2008/10/08/do-not-use-filed-name-same-as-form-attribute-name/comment-page-1/#comment-157538</link>
		<dc:creator>天堂左我往右</dc:creator>
		<pubDate>Sun, 25 Oct 2009 13:25:18 +0000</pubDate>
		<guid isPermaLink="false">http://realazy.org/blog/?p=183#comment-157538</guid>
		<description>...hax总结的牛</description>
		<content:encoded><![CDATA[<p>&#8230;hax总结的牛</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: feelface</title>
		<link>http://chen.xianan.name/blog/2008/10/08/do-not-use-filed-name-same-as-form-attribute-name/comment-page-1/#comment-118757</link>
		<dc:creator>feelface</dc:creator>
		<pubDate>Tue, 06 Jan 2009 01:41:56 +0000</pubDate>
		<guid isPermaLink="false">http://realazy.org/blog/?p=183#comment-118757</guid>
		<description>相比楼主，我的遭遇显然要悲惨很多：公司的java组用structs2开发框架，然后根据某某某structs的规定需要在每个form里面都有这么一个隐藏域&lt;input type=&quot;hidden&quot; name=&quot;id&quot; value=&quot;&quot; /&gt;...额，你知道我有多无语。</description>
		<content:encoded><![CDATA[<p>相比楼主，我的遭遇显然要悲惨很多：公司的java组用structs2开发框架，然后根据某某某structs的规定需要在每个form里面都有这么一个隐藏域&lt;input type=&#8221;hidden&#8221; name=&#8221;id&#8221; value=&#8221;" /&gt;&#8230;额，你知道我有多无语。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scriptlover</title>
		<link>http://chen.xianan.name/blog/2008/10/08/do-not-use-filed-name-same-as-form-attribute-name/comment-page-1/#comment-113620</link>
		<dc:creator>scriptlover</dc:creator>
		<pubDate>Tue, 16 Dec 2008 07:31:37 +0000</pubDate>
		<guid isPermaLink="false">http://realazy.org/blog/?p=183#comment-113620</guid>
		<description>你怎么知道 object 就是 input?</description>
		<content:encoded><![CDATA[<p>你怎么知道 object 就是 input?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xss</title>
		<link>http://chen.xianan.name/blog/2008/10/08/do-not-use-filed-name-same-as-form-attribute-name/comment-page-1/#comment-112272</link>
		<dc:creator>xss</dc:creator>
		<pubDate>Thu, 04 Dec 2008 01:41:06 +0000</pubDate>
		<guid isPermaLink="false">http://realazy.org/blog/?p=183#comment-112272</guid>
		<description>)-:  代码被过滤，再贴。

《form action=“this。php” method=“post”》
《input type=“image” src=“go。gif” 、》
《/form》
这样无法提交到本页。
把提交按钮改成原始状态
《input type=“submit” value=“提交” /》 
就可以了。</description>
		<content:encoded><![CDATA[<p>)-:  代码被过滤，再贴。</p>
<p>《form action=“this。php” method=“post”》<br />
《input type=“image” src=“go。gif” 、》<br />
《/form》<br />
这样无法提交到本页。<br />
把提交按钮改成原始状态<br />
《input type=“submit” value=“提交” /》<br />
就可以了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xss</title>
		<link>http://chen.xianan.name/blog/2008/10/08/do-not-use-filed-name-same-as-form-attribute-name/comment-page-1/#comment-112269</link>
		<dc:creator>xss</dc:creator>
		<pubDate>Thu, 04 Dec 2008 01:37:36 +0000</pubDate>
		<guid isPermaLink="false">http://realazy.org/blog/?p=183#comment-112269</guid>
		<description>最近也发现个怪事。



除了Firefox可以把数据提交到&lt;strong&gt;本页&lt;/strong&gt;，Opera，IE，都不能将提交到本页（从页面的出错信息看出来的）。

最后只有把提交按钮改回原始状态  
这样就行了。</description>
		<content:encoded><![CDATA[<p>最近也发现个怪事。</p>
<p>除了Firefox可以把数据提交到<strong>本页</strong>，Opera，IE，都不能将提交到本页（从页面的出错信息看出来的）。</p>
<p>最后只有把提交按钮改回原始状态<br />
这样就行了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 怿飞</title>
		<link>http://chen.xianan.name/blog/2008/10/08/do-not-use-filed-name-same-as-form-attribute-name/comment-page-1/#comment-105938</link>
		<dc:creator>怿飞</dc:creator>
		<pubDate>Wed, 12 Nov 2008 03:49:20 +0000</pubDate>
		<guid isPermaLink="false">http://realazy.org/blog/?p=183#comment-105938</guid>
		<description>John Resig在最新的文章中也提到了这个问题：
http://ejohn.org/blog/deadly-expandos/</description>
		<content:encoded><![CDATA[<p>John Resig在最新的文章中也提到了这个问题：<br />
<a href="http://ejohn.org/blog/deadly-expandos/" rel="nofollow">http://ejohn.org/blog/deadly-expandos/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hax</title>
		<link>http://chen.xianan.name/blog/2008/10/08/do-not-use-filed-name-same-as-form-attribute-name/comment-page-1/#comment-105550</link>
		<dc:creator>hax</dc:creator>
		<pubDate>Fri, 07 Nov 2008 11:00:41 +0000</pubDate>
		<guid isPermaLink="false">http://realazy.org/blog/?p=183#comment-105550</guid>
		<description>没办法，看我的blog吧：http://hax.javaeye.com/blog/264164</description>
		<content:encoded><![CDATA[<p>没办法，看我的blog吧：http://hax.javaeye.com/blog/264164</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hax</title>
		<link>http://chen.xianan.name/blog/2008/10/08/do-not-use-filed-name-same-as-form-attribute-name/comment-page-1/#comment-105548</link>
		<dc:creator>hax</dc:creator>
		<pubDate>Fri, 07 Nov 2008 10:44:01 +0000</pubDate>
		<guid isPermaLink="false">http://realazy.org/blog/?p=183#comment-105548</guid>
		<description>我的留言怎么没发出来？是不是贴的链接太多，当我spam了啊？？</description>
		<content:encoded><![CDATA[<p>我的留言怎么没发出来？是不是贴的链接太多，当我spam了啊？？</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hax</title>
		<link>http://chen.xianan.name/blog/2008/10/08/do-not-use-filed-name-same-as-form-attribute-name/comment-page-1/#comment-105547</link>
		<dc:creator>hax</dc:creator>
		<pubDate>Fri, 07 Nov 2008 10:43:25 +0000</pubDate>
		<guid isPermaLink="false">http://realazy.org/blog/?p=183#comment-105547</guid>
		<description>IE的getAttribute方法支持第二个参数，可以设定区分大小写的。</description>
		<content:encoded><![CDATA[<p>IE的getAttribute方法支持第二个参数，可以设定区分大小写的。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lan天才</title>
		<link>http://chen.xianan.name/blog/2008/10/08/do-not-use-filed-name-same-as-form-attribute-name/comment-page-1/#comment-101874</link>
		<dc:creator>Lan天才</dc:creator>
		<pubDate>Thu, 09 Oct 2008 12:41:27 +0000</pubDate>
		<guid isPermaLink="false">http://realazy.org/blog/?p=183#comment-101874</guid>
		<description>id也是一样，呵呵
另外getAttribute方法默认还不区分大小写</description>
		<content:encoded><![CDATA[<p>id也是一样，呵呵<br />
另外getAttribute方法默认还不区分大小写</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 冰古</title>
		<link>http://chen.xianan.name/blog/2008/10/08/do-not-use-filed-name-same-as-form-attribute-name/comment-page-1/#comment-101842</link>
		<dc:creator>冰古</dc:creator>
		<pubDate>Thu, 09 Oct 2008 08:21:38 +0000</pubDate>
		<guid isPermaLink="false">http://realazy.org/blog/?p=183#comment-101842</guid>
		<description>又是ie的不规范。</description>
		<content:encoded><![CDATA[<p>又是ie的不规范。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 闲耘</title>
		<link>http://chen.xianan.name/blog/2008/10/08/do-not-use-filed-name-same-as-form-attribute-name/comment-page-1/#comment-101833</link>
		<dc:creator>闲耘</dc:creator>
		<pubDate>Thu, 09 Oct 2008 07:06:22 +0000</pubDate>
		<guid isPermaLink="false">http://realazy.org/blog/?p=183#comment-101833</guid>
		<description>小细节应该关心，很不错。
@netwjx 其他浏览器也同样支持elements。</description>
		<content:encoded><![CDATA[<p>小细节应该关心，很不错。<br />
@netwjx 其他浏览器也同样支持elements。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: netwjx</title>
		<link>http://chen.xianan.name/blog/2008/10/08/do-not-use-filed-name-same-as-form-attribute-name/comment-page-1/#comment-101810</link>
		<dc:creator>netwjx</dc:creator>
		<pubDate>Thu, 09 Oct 2008 05:11:10 +0000</pubDate>
		<guid isPermaLink="false">http://realazy.org/blog/?p=183#comment-101810</guid>
		<description>ie的form有个elements集合</description>
		<content:encoded><![CDATA[<p>ie的form有个elements集合</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: smoke520</title>
		<link>http://chen.xianan.name/blog/2008/10/08/do-not-use-filed-name-same-as-form-attribute-name/comment-page-1/#comment-101767</link>
		<dc:creator>smoke520</dc:creator>
		<pubDate>Thu, 09 Oct 2008 00:42:50 +0000</pubDate>
		<guid isPermaLink="false">http://realazy.org/blog/?p=183#comment-101767</guid>
		<description>一直没注意，下次的注意。</description>
		<content:encoded><![CDATA[<p>一直没注意，下次的注意。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: realazy</title>
		<link>http://chen.xianan.name/blog/2008/10/08/do-not-use-filed-name-same-as-form-attribute-name/comment-page-1/#comment-101704</link>
		<dc:creator>realazy</dc:creator>
		<pubDate>Wed, 08 Oct 2008 14:49:04 +0000</pubDate>
		<guid isPermaLink="false">http://realazy.org/blog/?p=183#comment-101704</guid>
		<description>@netwjx 正如其名，&lt;code&gt;getAttribute&lt;/code&gt;是用来获取属性值的，直接使用 &lt;code&gt;form.method&lt;/code&gt; 或 &lt;code&gt;form[&#039;method&#039;]&lt;/code&gt; 方法取的是表单里的字段对象。但是由于浏览器也能够通过&lt;code&gt;form.method&lt;/code&gt; 或 &lt;code&gt;form[&#039;method&#039;]&lt;/code&gt;取得元素的属性值，因此造成混乱。初步怀疑在 IE 里它是不区分这两种方法的，才导致它出现本文中的问题。</description>
		<content:encoded><![CDATA[<p>@netwjx 正如其名，<code>getAttribute</code>是用来获取属性值的，直接使用 <code>form.method</code> 或 <code>form['method']</code> 方法取的是表单里的字段对象。但是由于浏览器也能够通过<code>form.method</code> 或 <code>form['method']</code>取得元素的属性值，因此造成混乱。初步怀疑在 IE 里它是不区分这两种方法的，才导致它出现本文中的问题。</p>
]]></content:encoded>
	</item>
</channel>
</rss>
