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:
df246df
)
Added a fix for bug #1612, where :contains() was failing on XML documents, in IE.
author
John Resig
<jeresig@gmail.com>
Sat, 15 Sep 2007 03:05:00 +0000
(
03:05
+0000)
committer
John Resig
<jeresig@gmail.com>
Sat, 15 Sep 2007 03:05:00 +0000
(
03:05
+0000)
src/selector.js
patch
|
blob
|
history
diff --git
a/src/selector.js
b/src/selector.js
index
f746fe1
..
82627e1
100644
(file)
--- a/
src/selector.js
+++ b/
src/selector.js
@@
-31,7
+31,7
@@
jQuery.extend({
empty: "!a.firstChild",
// Text Check
- contains: "(a.textContent||a.innerText||'').indexOf(m[3])>=0",
+ contains: "(a.textContent||a.innerText||jQuery(a).text()||'').indexOf(m[3])>=0",
// Visibility
visible: '"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden"',