Bug Tracker

Modify

Ticket #4476 (closed bug: worksforme)

Opened 5 years ago

Last modified 2 years ago

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:
Blocking: Blocked by:

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;

Change History

comment:1 Changed 5 years ago by huodian007

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;

comment:2 Changed 5 years ago by huodian007

It is IE 7.0

comment:3 Changed 4 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to worksforme

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.