1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-15 02:18:42 +02:00

Remove button from getFormElements query selector

This commit is contained in:
Kyle Spearrin 2017-10-02 10:32:49 -04:00
parent 1e18827b61
commit 81d7b87507

View File

@ -34,6 +34,7 @@
1. Populate isFirefox 1. Populate isFirefox
2. Remove isChrome and isSafari since they are not used. 2. Remove isChrome and isSafari since they are not used.
3. Unminify and format to meet Mozilla review requirements. 3. Unminify and format to meet Mozilla review requirements.
4. Remove button from getFormElements query selector
*/ */
function collect(document, undefined) { function collect(document, undefined) {
@ -550,7 +551,7 @@
function getFormElements(theDoc) { function getFormElements(theDoc) {
var els = []; var els = [];
try { try {
els = theDoc.querySelectorAll('input, select, button'); els = theDoc.querySelectorAll('input, select');
} catch (e) { } } catch (e) { }
return els; return els;
} }