From: John Resig Date: Thu, 26 Aug 2010 16:36:50 +0000 (-0400) Subject: Tweaked anchor test to work better on Blackberry 4.7. X-Git-Tag: 1.4.3rc1~143 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dc060f08cd898a12e16b817f46bb49861fbfed36;p=jquery.git Tweaked anchor test to work better on Blackberry 4.7. --- diff --git a/test/unit/attributes.js b/test/unit/attributes.js index 8ce1c73a6..3adb018df 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("