提交 f6ec318c 编写于 作者: H Henrik Ygge 提交者: tfennelly

[FIXED JENKINS-23724]

For some reason IE10 craches when document.getElementsByName is called and there is an element with a name attribute but no value. In this case a button had a name attribute set with an empty string as the value.
上级 80f78d57
......@@ -513,7 +513,7 @@ function makeButton(e,onclick) {
btn.addListener("click",h);
var be = btn.get("element");
Element.addClassName(be,clsName);
if(n!=null) // copy the name
if(n) // copy the name
be.setAttribute("name",n);
return btn;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册