He said at:

id = elem[ expando ] = ++uuid;

so I think:

http://dev.jquery.com/browser/trunk/jquery/src/data.js#L15

On Mon, Jan 12, 2009 at 6:33 AM, Ariel Flesler <[email protected]> wrote:
>
> What line ?
>
> --
> Ariel Flesler
> http://flesler.blogspot.com
>
> On Jan 12, 7:41 am, sglai <[email protected]> wrote:
>> 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;
>>         },
> >
>



-- 
---
David Zhou
[email protected]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to