Skip to content
Permalink
Browse files

Added a fix for bug #1612, where :contains() was failing on XML docum…

…ents, in IE.
  • Loading branch information
jeresig committed Sep 15, 2007
1 parent df246df commit 1088d06e5485451549990e6143001488f1580d83
Showing with 1 addition and 1 deletion.
  1. +1 −1 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"',

0 comments on commit 1088d06

Please sign in to comment.
You can’t perform that action at this time.