aboutsummaryrefslogtreecommitdiffstats
path: root/src/selector/selector.js
diff options
context:
space:
mode:
authorBrandon Aaron <brandon.aaron@gmail.com>2007-02-14 01:49:28 +0000
committerBrandon Aaron <brandon.aaron@gmail.com>2007-02-14 01:49:28 +0000
commit2712efd0fc89625da4d767f6073f575d040e30fd (patch)
tree1b388260ed7a3e6f62739647609836b604700845 /src/selector/selector.js
parent339789a931fbb01870b1ecd522e35bd439149292 (diff)
downloadjquery-2712efd0fc89625da4d767f6073f575d040e30fd.tar.gz
jquery-2712efd0fc89625da4d767f6073f575d040e30fd.zip
Update for src and href attribute selectors fix
Diffstat (limited to 'src/selector/selector.js')
-rw-r--r--src/selector/selector.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selector/selector.js b/src/selector/selector.js
index c6692e1b1..a6597f456 100644
--- a/src/selector/selector.js
+++ b/src/selector/selector.js
@@ -59,7 +59,7 @@ jQuery.extend({
_resort: function(m){
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"
},