2011年12月22日星期四

ie6 getElementById/getElementsByName bug

ref
in ie6:
document.getElementsByName(nameValue) will return the element which id attribute equals to nameValue
document.getElementById(idValue) will return the element which name attribute equals to idValue
so prevent to use the same id and name attribute value in dom!

没有评论:

发表评论