mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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",
|
||||
|
||||
// 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"',
|
||||
|
Loading…
Reference in New Issue
Block a user