Skip to main content

Bug Tracker

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: Owned by:
Priority: low Milestone:
Component: attributes Version: 1.6
Keywords: Cc:
Blocked by: Blocking:

elem.setAttribute is not a function


Line 2198

Attachments (0)
Change History (4)

Changed April 27, 2011 04:13PM UTC by timmywil comment:1

component: unfiledattributes
owner: →
priority: undecidedlow
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced test case on that reproduces the issue experienced to help us assess your ticket.

Additionally, test against the jQuery (edge) version to ensure the issue still exists.

Changed May 05, 2011 06:22PM UTC by Stephen Clouse <> 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 Stephen Clouse <> comment:3

Works on 1.5, error on 1.6 and edge

Changed May 06, 2011 03:38PM UTC by timmywil comment:4

resolution: → invalid
status: pendingclosed
version: 1.6rc11.6

As the docs for jQuery 1.6 state, do not use attr on the window or document as they cannot contain attributes. See and