Added a fix for bug #1612, where :contains() was failing on XML documents, in IE.
This commit is contained in:
parent
df246df2da
commit
1088d06e54
|
@ -31,7 +31,7 @@ jQuery.extend({
|
||||||
empty: "!a.firstChild",
|
empty: "!a.firstChild",
|
||||||
|
|
||||||
// Text Check
|
// Text Check
|
||||||
contains: "(a.textContent||a.innerText||'').indexOf(m[3])>=0",
|
contains: "(a.textContent||a.innerText||jQuery(a).text()||'').indexOf(m[3])>=0",
|
||||||
|
|
||||||
// Visibility
|
// Visibility
|
||||||
visible: '"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden"',
|
visible: '"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden"',
|
||||||
|
|
Loading…
Reference in a new issue