git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a fix for relative // - $("//div",this) (bug #1418)
[jquery.git]
/
src
/
selector
/
selector.js
diff --git
a/src/selector/selector.js
b/src/selector/selector.js
index
4a90bb9
..
2cf0b64
100644
(file)
--- a/
src/selector/selector.js
+++ b/
src/selector/selector.js
@@
-63,7
+63,7
@@
jQuery.extend({
// Match: :even, :last-chlid, #id, .class
new RegExp("^([:.#]*)(" +
// Match: :even, :last-chlid, #id, .class
new RegExp("^([:.#]*)(" +
- ( jQuery.chars = jQuery.browser.safari && jQuery.browser.version < "3.0.0" ? "\\w" : "(?:[\\w\u0128-\uFFFF*_-]|\\\\.)" ) + "+)")
+ ( jQuery.chars = jQuery.browser.safari && parseInt(jQuery.browser.version) < 417 ? "(?:[\\w*_-]|\\\\.)" : "(?:[\\w\u0128-\uFFFF*_-]|\\\\.)" ) + "+)")
],
multiFilter: function( expr, elems, not ) {
],
multiFilter: function( expr, elems, not ) {
@@
-99,7
+99,7
@@
jQuery.extend({
// Handle the common XPath // expression
if ( !t.indexOf("//") ) {
// Handle the common XPath // expression
if ( !t.indexOf("//") ) {
- context = context.documentElement;
+ //context = context.documentElement;
t = t.substr(2,t.length);
// And the / root expression
t = t.substr(2,t.length);
// And the / root expression
@@
-142,7
+142,7
@@
jQuery.extend({
if ( t.indexOf(" ") == 0 ) continue;
foundToken = true;
} else {
if ( t.indexOf(" ") == 0 ) continue;
foundToken = true;
} else {
- re = /^((\/?\.\.)|([>\/+~]))\s*([a-z]*)/i;
+ re = /^((\/?\.\.)|([>\/+~]))\s*(\w*)/i;
if ( (m = re.exec(t)) != null ) {
r = [];
if ( (m = re.exec(t)) != null ) {
r = [];