Bug Tracker

Ticket #1612 (closed bug: fixed)

Opened 1 year ago

Last modified 1 year ago

:contains selector doesn't work for Ajax responses in IE6

Reported by: julienw Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.2.1 Component: core
Version: 1.2 Keywords:
Cc: Needs: Review

Description

Hi,

I wanted to use the selector :contains for Ajax responses, and, while it works perfectly in Firefox, in doesn't work in IE. My guess is that Ajax responses don't have innerText set in IE (whereas in Firefox, they have textContent; I checked that).

The fix below works for me, for my specific case, but it is maybe too much intrusive, or not enough :

I'm changing this line :

contains: "(a.textContenta.innerText).indexOf(m[3])>=0",

to :

contains: "(a.textContenta.innerTexta.firstChild.nodeValue).indexOf(m[3])>=0",

I could setup a small testcase if you need it.

Attachments

Change History

Changed 1 year ago by john

  • status changed from new to closed
  • resolution set to fixed

Fixed in SVN rev [3300].

Note: See TracTickets for help on using tickets.