From dc060f08cd898a12e16b817f46bb49861fbfed36 Mon Sep 17 00:00:00 2001 From: John Resig Date: Thu, 26 Aug 2010 12:36:50 -0400 Subject: [PATCH] Tweaked anchor test to work better on Blackberry 4.7. --- test/unit/attributes.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/attributes.js b/test/unit/attributes.js index 8ce1c73a..3adb018d 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("