Bug Tracker

Modify

Ticket #5304 (closed bug: fixed)

Opened 4 years ago

Last modified 15 months ago

jQuery + IE + Prototype fails with "Object doesn't support this property or method"

Reported by: ecmanaut Owned by: john
Priority: major Milestone: 1.4
Component: selector Version: 1.4a1
Keywords: Cc: johan@…
Blocking: Blocked by:

Description

When using jQuery in conjunction with Prototype (my example is on  http://www.nytimes.com/), jQuery's detection of the browser's getElementsByClassName capabilities in [6178] fails in IE(7). This is probably another variant on #4042 and #4058, but which still exhibits with jQuery trunk, or [6586] at current time of writing.

The test for document's or document.documentElement's getElementsByClassName finds Prototype and assumes it to be native capability -- but the actual code uses a freshly created div's such method, which does not exist, so things fail.

Patch fixing the issue attached.

Attachments

5304.patch Download (829 bytes) - added by ecmanaut 4 years ago.
Patch towards trunk/jquery/src/selector.js (r6586) fixing the issue

Change History

Changed 4 years ago by ecmanaut

Patch towards trunk/jquery/src/selector.js (r6586) fixing the issue

comment:1 Changed 3 years ago by john

  • Status changed from new to closed
  • Version changed from 1.3.2 to 1.4a1
  • Resolution set to fixed

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.