Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
da02e190
Commit
da02e190
authored
Feb 25, 2012
by
Mike Sherov
Committed by
Dave Methvin
Mar 02, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #10828, .attr("coords") returns undefined in IE7
parent
56426261
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
attributes.js
src/attributes.js
+2
-1
attributes.js
test/unit/attributes.js
+13
-0
No files found.
src/attributes.js
View file @
da02e190
...
@@ -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
...
...
test/unit/attributes.js
View file @
da02e190
...
@@ -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"
);
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment