X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fattributes.js;h=c6007aacc8ab21df33757f1b2e970199baa3af18;hb=b03416954d8033e641bd658fb18631699db6cc51;hp=21d3d94bcb96a23cc5ad952820537223ad89fdfc;hpb=b3ccf2f2881d9ad988aba1cf3ccffb810063ab29;p=jquery.git diff --git a/test/unit/attributes.js b/test/unit/attributes.js index 21d3d94..c6007aa 100644 --- a/test/unit/attributes.js +++ b/test/unit/attributes.js @@ -30,7 +30,8 @@ test("attr(String)", function() { equals( jQuery('#foo').attr('nodeName').toUpperCase(), 'DIV', 'Check for nodeName attribute' ); equals( jQuery('#foo').attr('tagName').toUpperCase(), 'DIV', 'Check for tagName attribute' ); - jQuery('').attr('href', '#5').appendTo('#main'); // using innerHTML in IE causes href attribute to be serialized to the full path + // using innerHTML in IE causes href attribute to be serialized to the full path + jQuery('').attr({ 'id': 'tAnchor5', 'href': '#5' }).appendTo('#main'); equals( jQuery('#tAnchor5').attr('href'), "#5", 'Check for non-absolute href (an anchor)' ); equals( jQuery("