Commit da02e190 authored by Mike Sherov's avatar Mike Sherov Committed by Dave Methvin

Fixes #10828, .attr("coords") returns undefined in IE7

parent 56426261
...@@ -524,7 +524,8 @@ if ( !getSetAttribute ) { ...@@ -524,7 +524,8 @@ if ( !getSetAttribute ) {
fixSpecified = { fixSpecified = {
name: true, name: true,
id: true id: true,
coords: true
}; };
// Use this for any attribute in IE6/7 // Use this for any attribute in IE6/7
......
...@@ -1176,3 +1176,16 @@ test("contents().hasClass() returns correct values", function() { ...@@ -1176,3 +1176,16 @@ test("contents().hasClass() returns correct values", function() {
ok( $contents.hasClass("foo"), "Found 'foo' in $contents" ); ok( $contents.hasClass("foo"), "Found 'foo' in $contents" );
ok( !$contents.hasClass("undefined"), "Did not find 'undefined' in $contents (correctly)" ); 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");
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment