mirror of
https://github.com/jquery/jquery.git
synced 2026-02-06 17:14:58 -05:00
Fix #12915, add propHook for scrip src property on oldIE. Close gh-1035.
This commit is contained in:
@@ -568,12 +568,14 @@ 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 );
|
||||
}
|
||||
};
|
||||
// href/src property should get the full normalized URL (#10299/#12915)
|
||||
jQuery.each([ "href", "src" ], function( i, name ) {
|
||||
jQuery.propHooks[ name ] = {
|
||||
get: function( elem ) {
|
||||
return elem.getAttribute( name, 4 );
|
||||
}
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
if ( !jQuery.support.style ) {
|
||||
|
||||
Reference in New Issue
Block a user