]> source.dussan.org Git - jquery.git/commitdiff
elem.getElementsByTagName calls the function in IE6/7. Fixes #9370.
authortimmywil <tim.willison@thisismedium.com>
Wed, 25 May 2011 23:35:52 +0000 (19:35 -0400)
committertimmywil <tim.willison@thisismedium.com>
Wed, 25 May 2011 23:35:52 +0000 (19:35 -0400)
src/manipulation.js

index c76aa9e0db2da7357e952afedaf3f8293b9818f2..439b9596bca760411c25470d5b05ff28bd6418f2 100644 (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 );
        }
 }