Skip to main content

Bug Tracker

Side navigation

#5626 closed bug (invalid)

Opened December 09, 2009 10:21PM UTC

Closed December 10, 2009 12:52AM UTC

Problems with attr method on Safari 4.0.3

Reported by: watinha Owned by:
Priority: minor Milestone: 1.4
Component: unfiled Version: 1.4a1
Keywords: attr Safari 4.0.3 Cc:
Blocked by: Blocking:
Description

It seem to have a little bug on the attr method of the JQuery object on Safari. I used it in an application and it worked fine for attributing values to id and class. However, in Safari 4.0.3 this method introduced a bug on the code and didn't run. The piece of code that I used is presented on the following:

var divJetpackLink = document.createElement("div");

$(divJetpackLink).attr({

id: 'jetpackActivation',

class: 'jetpackActivation'

});

Attachments (0)
Change History (1)

Changed December 10, 2009 12:52AM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

The bare word

class
is a reserved word in Javascript. Either use
className
or
"class"
and it should work fine.