diff options
author | timmywil <tim.willison@thisismedium.com> | 2011-04-03 18:47:44 -0400 |
---|---|---|
committer | timmywil <tim.willison@thisismedium.com> | 2011-04-03 19:13:41 -0400 |
commit | 6f79bee3e3ea874f27389a7e691c1bd7541f2ef6 (patch) | |
tree | f42d4ad51a114fd69d65287f25a847fe80364769 /test/unit/attributes.js | |
parent | ad2b3bc9f908a8e529c4479c8c9baead23c2d827 (diff) | |
download | jquery-6f79bee3e3ea874f27389a7e691c1bd7541f2ef6.tar.gz jquery-6f79bee3e3ea874f27389a7e691c1bd7541f2ef6.zip |
Normalize css property names to lowercase for comparisons on a .attr('style') call since IE uppercases everything
Diffstat (limited to 'test/unit/attributes.js')
-rw-r--r-- | test/unit/attributes.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/attributes.js b/test/unit/attributes.js index 0e86a8bf6..4289bc3b7 100644 --- a/test/unit/attributes.js +++ b/test/unit/attributes.js @@ -135,8 +135,8 @@ test("attr(String)", function() { equals( $img.attr('height'), "53", "Retrieve height attribute an an element with display:none." ); // Check for style support - ok( !!~jQuery('#dl').attr('style').indexOf('absolute'), 'Check style attribute getter' ); - ok( !!~jQuery('#foo').attr('style', 'position:absolute;').attr('style').indexOf('absolute'), 'Check style setter' ); + ok( !!~jQuery('#dl').attr('style').indexOf('position'), 'Check style attribute getter, also normalize css props to lowercase' ); + ok( !!~jQuery('#foo').attr('style', 'position:absolute;').attr('style').indexOf('position'), 'Check style setter' ); 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." ); |