>I'm having 2 little issues regarding IE6/7 with 2 instructions that
>seem to work just fine in most browsers but not in IE6/7.
>
>First one, using clone() method:
>$('div#content a').each(function(elem) {
>       if(elem === 0) {
>               var color = $(this).clone(false).addClass('content-
>link').css('color');
>       }
>}

In IE6/7, some things just don't work correctly if an element isn't in the
DOM. Most of these issues are based upon visual aspects of the element.
Also, the cloneNode method in IE 6/7 also has some issues (see
http://192.168.1.70/working/jquery/cloneNode_issue.htm)--which is what
clone() uses.

What I suspect to be the problem is that since the $(this).clone(false)
object doesn't actually exist in the DOM, it can't actually read the color
property from the class declaration.

My guess is if you added that element to the DOM, the color would report
correctly.

Why are you trying to read the color in that way anyway? 

-Dan

Reply via email to