#5304 closed bug (fixed)
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: | [email protected]… | |
Blocked by: | Blocking: |
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 (1)
Change History (2)
Changed 14 years ago by
Attachment: | 5304.patch added |
---|
comment:1 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Version: | 1.3.2 → 1.4a1 |
Used a different technique, fixed though. http://github.com/jeresig/sizzle/commit/61cc4ad4ad80b28b76cc52a3d3756b187af5e177
Patch towards trunk/jquery/src/selector.js (r6586) fixing the issue