diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2012-02-25 15:05:15 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-03-02 11:08:52 -0500 |
commit | da02e190b5fa57d56a6561ac64209c36c64c4ecd (patch) | |
tree | f59e744d5cf152e449d02010febf9f09699fe666 /test | |
parent | 56426261f0ee97d6d2f903d08b137a6f5f2c0916 (diff) | |
download | jquery-da02e190b5fa57d56a6561ac64209c36c64c4ecd.tar.gz jquery-da02e190b5fa57d56a6561ac64209c36c64c4ecd.zip |
Fixes #10828, .attr("coords") returns undefined in IE7
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/attributes.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/unit/attributes.js b/test/unit/attributes.js index dbfa8c0c1..5d9a11139 100644 --- a/test/unit/attributes.js +++ b/test/unit/attributes.js @@ -1176,3 +1176,16 @@ test("contents().hasClass() returns correct values", function() { ok( $contents.hasClass("foo"), "Found 'foo' in $contents" ); ok( !$contents.hasClass("undefined"), "Did not find 'undefined' in $contents (correctly)" ); }); + +test("coords returns correct values in IE6/IE7, see #10828", function() { + expect(2); + + var map = jQuery("<map />"), + area; + + area = map.html("<area shape='rect' coords='0,0,0,0' href='#' alt='a' />").find("area"); + equal( area.attr("coords"), "0,0,0,0", "did not retrieve coords correctly"); + + area = map.html("<area shape='rect' href='#' alt='a' /></map>").find("area"); + equal( area.attr("coords"), undefined, "did not retrieve coords correctly"); +}); |