mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 19:41:49 +00:00
Bug 792228 - Let marionette recognize NodeList during findelements, r=mdas
This commit is contained in:
parent
9ed24236c4
commit
7a238fad77
@ -255,7 +255,7 @@ ElementManager.prototype = {
|
||||
let found = all ? this.findElements(values.using, values.value, win.document, startNode) : this.findElement(values.using, values.value, win.document, startNode);
|
||||
if (found) {
|
||||
let type = Object.prototype.toString.call(found);
|
||||
if ((type == '[object Array]') || (type == '[object HTMLCollection]')) {
|
||||
if ((type == '[object Array]') || (type == '[object HTMLCollection]') || (type == '[object NodeList]')) {
|
||||
let ids = []
|
||||
for (let i = 0 ; i < found.length ; i++) {
|
||||
ids.push(this.addToKnownElements(found[i]));
|
||||
|
Loading…
x
Reference in New Issue
Block a user