Skip to main content

Bug Tracker

Side navigation

#9370 closed bug (fixed)

Opened May 20, 2011 07:14PM UTC

Closed May 25, 2011 11:36PM UTC

Last modified March 08, 2012 04:18PM UTC

Compatibility Issue with jQuery 1.6 and IE6

Reported by: sradoff@cfl.rr.com Owned by: timmywil
Priority: high Milestone: 1.6.2
Component: manipulation Version: 1.6.1
Keywords: xml Cc:
Blocked by: Blocking:
Description

A compatibility issue has arisen with jquery 1.6 (and 1.6.1) and IE6. The failure does not occur with any version of jquery 1.5. A link to jsfiddle sample code that demonstrates the issue follows:

It is suggested that the link be run first on Firefox in which the sample code runs properly. Then use the same link with IE6. An alert box will appear indicating the point in the code that is failing. Note that the failure occurs with the append() method.

Attachments (0)
Change History (15)

Changed May 20, 2011 07:25PM UTC by rwaldron comment:1

owner: → sradoff@cfl.rr.com
status: newpending

Just ran on Chrome then in IE6... there was no alert(). Is there anyway to reduce this test case down to the single item that is causing the issue?

Changed May 20, 2011 07:40PM UTC by sradoff@cfl.rr.com comment:2

status: pendingnew

I just tested the jsfiddle code and I can reproduce the failure. I could send you the alert I get if only I knew how to embed a jpg into this response.

This appears to be a real failure that I can reproduce with jsfiddle and my application code.

As for making the test code smaller the problem is that I rely upon generating XML and find that jquery tends to be weak in that area. So the functions you see are for the purpose of generating XML and utilize standard DHTML methods.

Changed May 20, 2011 11:32PM UTC by sradoff@cfl.rr.com comment:3

Below are additional pieces of information.

The place where the failure takes place with IE6 is on the line with code:

$(oData).append(oDems);

The error is: Wrong number of arguments or invalid property assignment.

I tested with various versions of MSXML (3 and 6) and the error still occurs. My O/S is WinXP, SP3.

Changed May 24, 2011 01:25AM UTC by timmywil comment:4

component: unfiledmanipulation
keywords: → xml
priority: undecidedlow
status: newopen

I've looked into this, but didn't discover what is causing the error.

Changed May 24, 2011 11:00AM UTC by anonymous comment:5

The problem is in the findInputs method, which is new in jQuery 1.6. Accessing elem.getElementsByTagName causes the error. If I use typeof elem.getElementsByTagName == "function" instead it works. But the type returned is "unknown". I encounter this problem in the IE7 compatibility mode in IE9.

Changed May 24, 2011 02:24PM UTC by timmywil comment:6

owner: sradoff@cfl.rr.comtimmywil
status: openassigned

that makes sense.

Changed May 24, 2011 02:25PM UTC by timmywil comment:7

milestone: 1.next1.6.2
priority: lowhigh

Changed May 25, 2011 11:36PM UTC by timmywil comment:8

resolution: → fixed
status: assignedclosed

elem.getElementsByTagName calls the function in IE6/7. Fixes #9370.

Changeset: 1d1cb582c0f744afaa51a63d374b9ffe0f58d1db

Changed May 25, 2011 11:50PM UTC by rwaldron comment:9

description: A compatibility issue has arisen with jquery 1.6 (and 1.6.1) and IE6. The failure does not occur with any version of jquery 1.5. A link to jsfiddle sample code that demonstrates the issue follows: \ \ http://jsfiddle.net/sradoff/bQkhG/9/ \ \ It is suggested that the link be run first on Firefox in which the sample code runs properly. Then use the same link with IE6. An alert box will appear indicating the point in the code that is failing. Note that the failure occurs with the append() method.A compatibility issue has arisen with jquery 1.6 (and 1.6.1) and IE6. The failure does not occur with any version of jquery 1.5. A link to jsfiddle sample code that demonstrates the issue follows: \ \ \ \ It is suggested that the link be run first on Firefox in which the sample code runs properly. Then use the same link with IE6. An alert box will appear indicating the point in the code that is failing. Note that the failure occurs with the append() method.

@timmywil can you add a test for this?

Changed May 26, 2011 12:50AM UTC by timmywil comment:10

Can't slip by you can I. ;) test added...

9d4033d629fbfd1352e4ee5f20d0d320a61b80f1

Changed May 26, 2011 02:33AM UTC by rwaldron comment:11

That's a great test dude :D

Changed June 20, 2011 02:16PM UTC by timmywil comment:12

#9610 is a duplicate of this ticket.

Changed June 24, 2011 09:13PM UTC by timmywil comment:13

#9602 is a duplicate of this ticket.

Changed June 28, 2011 07:16PM UTC by sradoff@cfl.rr.com comment:14

When will 1.6.2 be released and available minified?

Changed June 28, 2011 07:24PM UTC by timmywil comment:15

@sradoff: will be this week.