elem.getElementsByTagName calls the function in IE6/7. Fixes #9370.

This commit is contained in:
timmywil 2011-05-25 19:35:52 -04:00
parent 287156197f
commit 1d1cb582c0

View file

@ -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 );
}
}