aboutsummaryrefslogtreecommitdiffstats
path: root/src/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 /src/attributes.js
parent9c2f0005675c8d913aabd83ed6723aab6ac9e59c (diff)
downloadjquery-240b141a22c4783d619fc67c91f990d1535e7c57.tar.gz
jquery-240b141a22c4783d619fc67c91f990d1535e7c57.zip
Fix #10299. Add a propHook for oldIE link href.
Diffstat (limited to 'src/attributes.js')
-rw-r--r--src/attributes.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/attributes.js b/src/attributes.js
index 52098ae34..dbaf3d5eb 100644
--- a/src/attributes.js
+++ b/src/attributes.js
@@ -562,6 +562,7 @@ if ( !getSetAttribute ) {
// Some attributes require a special call on IE
+// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
if ( !jQuery.support.hrefNormalized ) {
jQuery.each([ "href", "src", "width", "height" ], function( i, name ) {
jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
@@ -571,6 +572,13 @@ if ( !jQuery.support.hrefNormalized ) {
}
});
});
+
+ // link's href property should get the full normalized URL (#10299)
+ jQuery.propHooks.href = {
+ get: function( elem, name ) {
+ return elem.getAttribute( name, 4 );
+ }
+ };
}
if ( !jQuery.support.style ) {