mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Update for src and href attribute selectors fix
This commit is contained in:
parent
339789a931
commit
2712efd0fc
2
src/jquery/jquery.js
vendored
2
src/jquery/jquery.js
vendored
@ -1525,7 +1525,7 @@ jQuery.extend({
|
|||||||
// IE elem.getAttribute passes even for style
|
// IE elem.getAttribute passes even for style
|
||||||
else if ( elem.tagName ) {
|
else if ( elem.tagName ) {
|
||||||
if ( value != undefined ) elem.setAttribute( name, value );
|
if ( value != undefined ) elem.setAttribute( name, value );
|
||||||
if ( jQuery.browser.msie && !jQuery.isXMLDoc(elem) && /^(href|src|background|cite|classid|codebase|data|longdesc|profile|usemap)$/.test(name) )
|
if ( jQuery.browser.msie && /href|src/.test(name) && !jQuery.isXMLDoc(elem) )
|
||||||
return elem.getAttribute( name, 2 );
|
return elem.getAttribute( name, 2 );
|
||||||
return elem.getAttribute( name );
|
return elem.getAttribute( name );
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ jQuery.extend({
|
|||||||
_resort: function(m){
|
_resort: function(m){
|
||||||
return ["", m[1], m[3], m[2], m[5]];
|
return ["", m[1], m[3], m[2], m[5]];
|
||||||
},
|
},
|
||||||
_prefix: "z=jQuery.attr(a,m[3]);" // just use attr instead of checking for property first. href in firefox return full URI as property
|
_prefix: "z=a[m[3]];if(!z||/href|src/.test(m[3]))z=jQuery.attr(a,m[3]);"
|
||||||
},
|
},
|
||||||
"[": "jQuery.find(m[2],a).length"
|
"[": "jQuery.find(m[2],a).length"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user