Bug 888749 - Don't be confused by <children> elements. r=dao

This commit is contained in:
Blake Kaplan 2013-07-03 15:07:28 -07:00
parent bc2d13d376
commit e6afc1fc30

View File

@ -352,8 +352,13 @@
<method name="_getScrollableElements">
<body><![CDATA[
var nodes = this.hasChildNodes() ?
this.childNodes : document.getBindingParent(this).childNodes;
var nodes = this.childNodes;
if (nodes.length == 1 &&
nodes[0].localName == "children" &&
nodes[0].namespaceURI == "http://www.mozilla.org/xbl") {
nodes = document.getBindingParent(this).childNodes;
}
return Array.filter(nodes, this._canScrollToElement, this);
]]></body>
</method>