From da02e190b5fa57d56a6561ac64209c36c64c4ecd Mon Sep 17 00:00:00 2001 From: Mike Sherov Date: Sat, 25 Feb 2012 15:05:15 -0500 Subject: Fixes #10828, .attr("coords") returns undefined in IE7 --- test/unit/attributes.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test') 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(""), + area; + + area = map.html("a").find("area"); + equal( area.attr("coords"), "0,0,0,0", "did not retrieve coords correctly"); + + area = map.html("a").find("area"); + equal( area.attr("coords"), undefined, "did not retrieve coords correctly"); +}); -- cgit v1.2.3