$().remove() generate error in IE6.
Hi, following code does not work in IE6 (FF3.0 works), anyone have
this problem?
$.debug(true);
var d = parseXML("<x><y>yy</y><z>zz</z></x>");
$.log($("z", d).text());
$("z", d).remove();
$.log($("z", d).text());
After some debugging, it seems like the error occur at
data: function( elem, name, data ) {
elem = elem == window ?
windowData :
elem;
var id = elem[ expando ];
// Compute a unique ID for the element
if ( !id )
id = elem[ expando ] = ++uuid; <-------------------- here : Object
doesn't support this property
// Only generate the data cache if we're
// trying to access or manipulate it
if ( name && !jQuery.cache[ id ] )
jQuery.cache[ id ] = {};
// Prevent overriding the named cache with undefined values
if ( data !== undefined )
jQuery.cache[ id ][ name ] = data;
// Return the named cache data, or the ID for the element
return name ?
jQuery.cache[ id ][ name ] :
id;
},