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
74c06be3
Commit
74c06be3
authored
Jan 11, 2007
by
John Resig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a fix for $("object *") in IE7.
parent
9449591e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
selector.js
src/selector/selector.js
+10
-2
No files found.
src/selector/selector.js
View file @
74c06be3
...
@@ -235,12 +235,20 @@ jQuery.extend({
...
@@ -235,12 +235,20 @@ jQuery.extend({
// We need to find all descendant elements, it is more
// We need to find all descendant elements, it is more
// efficient to use getAll() when we are already further down
// efficient to use getAll() when we are already further down
// the tree - we try to recognize that here
// the tree - we try to recognize that here
for
(
var
i
=
0
,
rl
=
ret
.
length
;
i
<
rl
;
i
++
)
for
(
var
i
=
0
,
rl
=
ret
.
length
;
i
<
rl
;
i
++
)
{
// Grab the tag name being searched for
var
tag
=
m
[
1
]
!=
""
||
m
[
0
]
==
""
?
"*"
:
m
[
2
];
// Handle IE7 being really dumb about <object>s
if
(
ret
[
i
].
nodeName
.
toUpperCase
()
==
"OBJECT"
&&
tag
==
"*"
)
tag
=
"param"
;
jQuery
.
merge
(
r
,
jQuery
.
merge
(
r
,
m
[
1
]
!=
""
&&
ret
.
length
!=
1
?
m
[
1
]
!=
""
&&
ret
.
length
!=
1
?
jQuery
.
getAll
(
ret
[
i
],
[],
m
[
1
],
m
[
2
],
rec
)
:
jQuery
.
getAll
(
ret
[
i
],
[],
m
[
1
],
m
[
2
],
rec
)
:
ret
[
i
].
getElementsByTagName
(
m
[
1
]
!=
""
||
m
[
0
]
==
""
?
"*"
:
m
[
2
]
)
ret
[
i
].
getElementsByTagName
(
tag
)
);
);
}
// It's faster to filter by class and be done with it
// It's faster to filter by class and be done with it
if
(
m
[
1
]
==
"."
&&
ret
.
length
==
1
)
if
(
m
[
1
]
==
"."
&&
ret
.
length
==
1
)
...
...
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