mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
Bug 888749 - Don't be confused by <children> elements. r=dao
This commit is contained in:
parent
a210b5dede
commit
7f15dc6ac8
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user