Side navigation
#8988 closed bug (invalid)
Opened April 27, 2011 03:07PM UTC
Closed May 06, 2011 03:38PM UTC
function is not supported
Reported by: | wtsoftware@163.com | Owned by: | wtsoftware@163.com |
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | attributes | Version: | 1.6 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
elem.setAttribute is not a function
jquery-1.6rc1.js
Line 2198
Attachments (0)
Change History (4)
Changed April 27, 2011 04:13PM UTC by comment:1
component: | unfiled → attributes |
---|---|
owner: | → wtsoftware@163.com |
priority: | undecided → low |
status: | new → pending |
Changed May 05, 2011 06:22PM UTC by comment:2
Confirming that this bug still exists in 1.6 release (line is now 2206).
Actually the failure mode I've seen personally is exactly the same as #7497 (which was closed as dup of #7500), upgrade to 1.6 and jquery.event.drag-2.0 suddenly stops working because it tries to call .attr on the document object. So this looks an awful lot like a regression of #7500, or really a re-regression (it was broken in 1.4.4, fixed in 1.5, re-broken in 1.6).
Changed May 05, 2011 06:38PM UTC by comment:3
Works on 1.5, error on 1.6 and edge
Changed May 06, 2011 03:38PM UTC by comment:4
resolution: | → invalid |
---|---|
status: | pending → closed |
version: | 1.6rc1 → 1.6 |
As the docs for jQuery 1.6 state, do not use attr on the window or document as they cannot contain attributes. See http://api.jquery.com/prop and http://api.jquery.com/attr.
Thanks for taking the time to contribute to the jQuery project! Please provide a reduced test case on http://jsFiddle.net that reproduces the issue experienced to help us assess your ticket.
Additionally, test against the
jQuery (edge)
version to ensure the issue still exists.