Retrieve the class attribute on a form in IE6/7. Fixes 9286.

This commit is contained in:
timmywil 2011-05-14 12:07:40 -04:00
parent cf702496ee
commit 6171e0a923
2 changed files with 7 additions and 2 deletions

View file

@ -40,7 +40,7 @@ test("jQuery.attrFix/jQuery.propFix integrity test", function() {
});
test("attr(String)", function() {
expect(38);
expect(39);
equals( jQuery("#text1").attr("type"), "text", "Check for type attribute" );
equals( jQuery("#radio1").attr("type"), "radio", "Check for type attribute" );
@ -117,6 +117,9 @@ test("attr(String)", function() {
ok( jQuery("<div/>").attr("doesntexist") === undefined, "Make sure undefined is returned when no attribute is found." );
ok( jQuery().attr("doesntexist") === undefined, "Make sure undefined is returned when no element is there." );
var $form = jQuery("<form class='something'></form>").appendTo("#qunit-fixture");
equal( $form.attr("class"), "something", "Retrieve the class attribute on a form" );
});
if ( !isLocal ) {