From 0656e732fee36bf423f65dd20e8799ffbc847bc8 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 11 Oct 2017 22:11:34 -0400 Subject: [PATCH] convert nodelist to array --- src/content/autofill.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/content/autofill.js b/src/content/autofill.js index 8eaed64248a..878a9ca2896 100644 --- a/src/content/autofill.js +++ b/src/content/autofill.js @@ -551,8 +551,9 @@ function getFormElements(theDoc, limit) { var els = []; try { - els = theDoc.querySelectorAll('input:not([type="hidden"]):not([type="submit"]):not([type="reset"])' + + var elsList = theDoc.querySelectorAll('input:not([type="hidden"]):not([type="submit"]):not([type="reset"])' + ':not([type="button"]):not([type="image"]):not([type="file"]), select'); + els = Array.prototype.slice.call(elsList); } catch (e) { } return limit && els.length > limit ? els.slice(0, limit) : els;