第一个表单, 焦点在表单中时, 按回车可以提交表单.
第二个表单开始时隐藏的, 页面加载完用JavaScript显示出来(通过添加一个inline的样式), 按回车却无法触发表单的提交事件.(RC版中已解决) 第三个表单开始时隐藏的, 页面加载完用JavaScript显示出来(通过添加一个className), 按下回车依然无法触发表单的提交事件.(RC版中依然存在此问题)



Focus on this form and press Enter will submit this form.



But this form, not work.(In IE9 beta not work, but now work in RC version)



But this form, not work.(show by add a className, still not work in RC version.)

Difference is the second form's style.display="none" at first, and then show it by javascript.

PS: display:none and visibility:hidden both lead this problem. Both inline style and className lead this.

备注: display:none 和 visibility:hidden 两种方式都将导致这个问题, 且无论是通过设置class还是直接写在inline的style中.


In RC version, pressing enter can trigger submit event after add style="display:block" inline. But if display:block added by a className, it still now work.

在RC版中, 通过添加inline的style="display:block"可以让回车触发submit事件, 但添加一个含有display:block的className却依然无法让回车触发submit事件.