aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/attributes.js
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2012-11-01 20:50:45 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-11-01 20:50:45 -0400
commit240b141a22c4783d619fc67c91f990d1535e7c57 (patch)
tree77333bf7723eb3fd7f50bec5ba89be98f68261c6 /test/unit/attributes.js
parent9c2f0005675c8d913aabd83ed6723aab6ac9e59c (diff)
downloadjquery-240b141a22c4783d619fc67c91f990d1535e7c57.tar.gz
jquery-240b141a22c4783d619fc67c91f990d1535e7c57.zip
Fix #10299. Add a propHook for oldIE link href.
Diffstat (limited to 'test/unit/attributes.js')
-rw-r--r--test/unit/attributes.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/attributes.js b/test/unit/attributes.js
index f171e896e..e2648a0e6 100644
--- a/test/unit/attributes.js
+++ b/test/unit/attributes.js
@@ -54,7 +54,7 @@ test( "jQuery.propFix integrity test", function() {
});
test( "attr(String)", function() {
- expect( 46 );
+ expect( 47 );
equal( jQuery("#text1").attr("type"), "text", "Check for type attribute" );
equal( jQuery("#radio1").attr("type"), "radio", "Check for type attribute" );
@@ -92,6 +92,8 @@ test( "attr(String)", function() {
"href": "#5"
}).appendTo("#qunit-fixture");
equal( jQuery("#tAnchor5").attr("href"), "#5", "Check for non-absolute href (an anchor)" );
+ jQuery("<a id='tAnchor6' href='#5' />").appendTo("#qunit-fixture");
+ equal( jQuery("#tAnchor5").prop("href"), jQuery("#tAnchor6").prop("href"), "Check for absolute href prop on an anchor" );
// list attribute is readonly by default in browsers that support it
jQuery("#list-test").attr( "list", "datalist" );