]> source.dussan.org Git - jquery.git/commitdiff
Fix the ^= type attribute selector in firefox for href.
authorBrandon Aaron <brandon.aaron@gmail.com>
Tue, 13 Feb 2007 19:06:38 +0000 (19:06 +0000)
committerBrandon Aaron <brandon.aaron@gmail.com>
Tue, 13 Feb 2007 19:06:38 +0000 (19:06 +0000)
src/selector/selector.js

index a21e5794c9e7c6109eeeaf4a80b81e28ac2ec937..c6692e1b1c6f1ddba977a1e4c8e84e7aacb560a0 100644 (file)
@@ -59,7 +59,7 @@ jQuery.extend({
                        _resort: function(m){
                                return ["", m[1], m[3], m[2], m[5]];
                        },
-                       _prefix: "z=a[m[3]]||jQuery.attr(a,m[3]);"
+                       _prefix: "z=jQuery.attr(a,m[3]);" // just use attr instead of checking for property first. href in firefox return full URI as property
                },
                "[": "jQuery.find(m[2],a).length"
        },