Skip to content

Commit 49b46f5

Browse files
authored
Merge pull request #446 from nimasmi/master
#390 alternative fix for IE8
2 parents a73bb0d + a607b43 commit 49b46f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jquery.form.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -982,8 +982,8 @@ $.fn.formToArray = function(semantic, elements, filtering) {
982982
var els = semantic ? form.getElementsByTagName('*') : form.elements;
983983
var els2;
984984

985-
if (els && !/MSIE [678]/.test(navigator.userAgent)) { // #390
986-
els = $(els).get(); // convert to standard array
985+
if (els) {
986+
els = $.makeArray(els); // convert to standard array
987987
}
988988

989989
// #386; account for inputs outside the form which use the 'form' attribute

0 commit comments

Comments
 (0)