Setting 'class' attribute in bulk attribute syntax without quotes breaks IE/Opera (WAS Possible bug in 1.4)

Setting 'class' attribute in bulk attribute syntax without quotes breaks IE/Opera (WAS Possible bug in 1.4)

Morning peoples.


I think i have found a possible bug in 1.4 but it's only in Internet Explorer 7 & 8.


The following code does not work and completely ruins every peice of jquery on the page (that means everything inside $(document).ready and anyting else...

$("<div/>",{
  id:     'tooltip-'+rand,
  class: 'dock-tooltip',
      css :
        {
        'position':        'absolute',
        'z-index':        '999',
        'left':            left+'px',
        'bottom':        '32px',
        'display':         'none'
        },
    html : text
  }).appendTo("#container").show("fast");












Yet this code works fine.

$('<div id="tooltip-'+rand+'" class="dock-tooltip"><div class="tooltip-top">'+text+'</div></div>').css({'position':'absolute','z-index':'999','left':left+'px', 'display':'none'}).appendTo("#container").show("fast");


I cant see any syntax errors - i pulled the example from the 1.4 site. There is no trailing commas in the object notation and i really cant see any reason it would work in firefox and not IEx and more to the point not only not work in IEx but break any other jquery in the entire page....


Not really sure where to post the possible bug to either !

Anyone have any suggestions ?

Thanks in advance


Alex