                 else 
                 {
                     sv = s['@' + st].toString();
-                    tv = s['@' + tt].toString();
+                    tv = t['@' + tt].toString();
                     if (sv != tv)
                     {
                         if (xywidthheight[st] == 1)

                            tv = tv.substring(1, tv.length - 2);
                            sparts = sv.split(",");
                            tparts = tv.split(",");
                            n = sparts.length;
                            for (i = 0; i < n; i++)
                            {
                                sv = sparts[i];
                                tv = tparts[i];
                                sv = sv.split("=")[1];
                                tv = tv.split("=")[1];
                                sf = Number(sv);

        {
            for (i = 0; i < n; i++)
            {
                var nk:String = sl[i].nodeKind();
                if (nk == "text")
                {
                    if (sl[i].text() != tl[i].text())
                    {
                        trace(sn, "different number of text nodes: cur=", sl[i].text(), "xml=", tl[i].text());
                        retval = true;
                    }
                }
                else if (nk == "element")
                {
                    if (compareNodes(sl[i], tl[i]))
                        retval = true;
                }
            }
        }
        return retval;
