Skip to main content

Bug Tracker

Side navigation

#4476 closed bug (worksforme)

Opened April 02, 2009 12:32PM UTC

Closed June 12, 2010 02:27PM UTC

Last modified March 13, 2012 04:42PM UTC

Jquery not support XML parse for IE

Reported by: huodian007 Owned by:
Priority: major Milestone: 1.4
Component: unfiled Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:
Description

in Jquery.1.3.2 line 1945

To get the XML text, in firefox it is elem.textContent, but in IE it is elem.text

so it should change

return (elem.textContent || elem.innerText || "").indexOf(match[3]) >= 0;

to

return (elem.textContent || elem.innerText || elem.text || "").indexOf(match[3]) >= 0;

Attachments (0)
Change History (3)

Changed April 02, 2009 12:33PM UTC by huodian007 comment:1

in Jquery.1.3.2 line 1945 To get the XML text, in firefox it is elem.textContent, but in IE it is elem.text so it should change

return (elem.textContent || elem.innerText || "").indexOf(match[3]) >= 0;

to

return (elem.textContent || elem.innerText || elem.text ||"").indexOf(match[3]) >= 0;

Changed April 02, 2009 12:35PM UTC by huodian007 comment:2

It is IE 7.0

Changed June 12, 2010 02:27PM UTC by dmethvin comment:3

resolution: → worksforme
status: newclosed

This must have been a bug in the pre-release 1.3; the code is correct in 1.3.2.