Skip to main content

Bug Tracker

Side navigation

#5304 closed bug (fixed)

Opened September 28, 2009 09:35PM UTC

Closed December 07, 2009 05:08AM UTC

Last modified March 15, 2012 12:04PM UTC

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

When using jQuery in conjunction with Prototype (my example is on, 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 (1)
  • 5304.patch (0.8 KB) - added by ecmanaut September 28, 2009 09:37PM UTC.

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

Change History (1)

Changed December 07, 2009 05:08AM UTC by john comment:1

resolution: → fixed
status: newclosed