git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7b3ab69
)
Fixed an issue with child selectors and XML documents (nodeName isn't in all-caps...
author
John Resig
<jeresig@gmail.com>
Mon, 22 Jan 2007 00:25:16 +0000
(
00:25
+0000)
committer
John Resig
<jeresig@gmail.com>
Mon, 22 Jan 2007 00:25:16 +0000
(
00:25
+0000)
src/selector/selector.js
patch
|
blob
|
history
diff --git
a/src/selector/selector.js
b/src/selector/selector.js
index
6a5760a
..
be279a7
100644
(file)
--- a/
src/selector/selector.js
+++ b/
src/selector/selector.js
@@
-155,7
+155,7
@@
jQuery.extend({
// Perform our own iteration and filter
jQuery.each( ret, function(){
for ( var c = this.firstChild; c; c = c.nextSibling )
// Perform our own iteration and filter
jQuery.each( ret, function(){
for ( var c = this.firstChild; c; c = c.nextSibling )
- if ( c.nodeType == 1 && ( c.nodeName == m[1].toUpperCase() || m[1] == "*" ) )
+ if ( c.nodeType == 1 && ( c.nodeName.toUpperCase() == m[1].toUpperCase() || m[1] == "*" ) )
r.push( c );
});
r.push( c );
});