Skip to content

Commit

Permalink
Added a fix for bug jquery#1612, where :contains() was failing on XML…
Browse files Browse the repository at this point in the history
… documents, in IE.
  • Loading branch information
jeresig committed Sep 15, 2007
1 parent df246df commit 1088d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"',
Expand Down

0 comments on commit 1088d06

Please sign in to comment.