Bug Tracker

Opened 13 years ago

Closed 13 years ago

Last modified 11 years ago

#6592 closed bug (invalid)

jQuery(html, props) not works correctly in IE!

Reported by: josotoru Owned by:
Priority: Milestone: 1.4.3
Component: unfiled Version: 1.4.2
Keywords: jquery, props Cc:
Blocked by: Blocking:

Description

The following example:

jQuery('<div />',{

class : "myclass", css : {

"position":"absolute", "left": "10px", "top" : "10px", "display" : "none", "z-index" : "90000"

}

}).appendTo("body");

Not works correctly in any version of IE, instead I use the following code:

jQuery('<div />'). addClass('myclass') .css({

"position":"absolute", "left": "10px", "top" : "10px", "display" : "none", "z-index" : "90000"

}).appendTo("body");

The first snipet works cool ;) in Firefox, Chrome, Opera and Safari.

Change History (1)

comment:1 Changed 13 years ago by dmethvin

Resolution: invalid
Status: newclosed

class is a reserved word. Quote it as "class" or use className instead.

Note: See TracTickets for help on using tickets.