#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.
Note: See
TracTickets for help on using
tickets.
class
is a reserved word. Quote it as"class"
or useclassName
instead.