From 1d1cb582c0f744afaa51a63d374b9ffe0f58d1db Mon Sep 17 00:00:00 2001 From: timmywil Date: Wed, 25 May 2011 19:35:52 -0400 Subject: [PATCH] elem.getElementsByTagName calls the function in IE6/7. Fixes #9370. --- src/manipulation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manipulation.js b/src/manipulation.js index c76aa9e0..439b9596 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -533,7 +533,7 @@ function fixDefaultChecked( elem ) { function findInputs( elem ) { if ( jQuery.nodeName( elem, "input" ) ) { fixDefaultChecked( elem ); - } else if ( elem.getElementsByTagName ) { + } else if ( "getElementsByTagName" in elem ) { jQuery.grep( elem.getElementsByTagName("input"), fixDefaultChecked ); } }