From 1088d06e5485451549990e6143001488f1580d83 Mon Sep 17 00:00:00 2001 From: John Resig Date: Sat, 15 Sep 2007 03:05:00 +0000 Subject: [PATCH] Added a fix for bug #1612, where :contains() was failing on XML documents, in IE. --- src/selector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/selector.js b/src/selector.js index f746fe1..82627e1 100644 --- 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"', -- 1.7.10.4