未验证 提交 35aabddf 编写于 作者: F Flame2057 提交者: GitHub

Merge pull request #1363 from timoschwarzer/master

Fix deadlock when having a form with name=host
......@@ -1239,9 +1239,9 @@
function _getParentOrHost(el) {
var parent = el.host;
return (parent && parent.nodeType) ? parent : el.parentNode;
return (el.host && el !== document && el.host.nodeType)
? el.host
: el.parentNode;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册