From 904ef97ed1175b6f899efe9240381c8b0638667d Mon Sep 17 00:00:00 2001 From: Scott Hughes Date: Wed, 4 Aug 2010 14:22:46 +1000 Subject: [PATCH] Fixed #6867: added element check to jQuery.makeArray to avoid treating elements with length property as arrays --- src/core.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core.js b/src/core.js index e1a3a6df25..c22a2eac75 100644 --- a/src/core.js +++ b/src/core.js @@ -591,10 +591,11 @@ jQuery.extend({ var ret = results || []; if ( array != null ) { - // The window, strings (and functions) also have 'length' + // The window, strings, functions and some DOM elements + // (e.g.,
and