]> source.dussan.org Git - jquery.git/commitdiff
Added a fix for bug #1612, where :contains() was failing on XML documents, in IE.
authorJohn Resig <jeresig@gmail.com>
Sat, 15 Sep 2007 03:05:00 +0000 (03:05 +0000)
committerJohn Resig <jeresig@gmail.com>
Sat, 15 Sep 2007 03:05:00 +0000 (03:05 +0000)
src/selector.js

index f746fe11c3fadfab4332e75d5b1fcfcf0c02eb23..82627e1cc382bd4126b978d2bc34b5ac2ea42614 100644 (file)
@@ -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"',