]> source.dussan.org Git - jquery.git/commitdiff
Added a fix for bug #1331, which caused Safari 1.3 to crash.
authorJohn Resig <jeresig@gmail.com>
Wed, 4 Jul 2007 16:15:09 +0000 (16:15 +0000)
committerJohn Resig <jeresig@gmail.com>
Wed, 4 Jul 2007 16:15:09 +0000 (16:15 +0000)
src/selector/selector.js

index 5f6f87b0460965522b19dca45256c1aeddb19968..04b68d3e20466a2a25f6c66ce684ac3e1a1d0e19 100644 (file)
@@ -63,7 +63,7 @@ jQuery.extend({
 
                // Match: :even, :last-chlid, #id, .class
                new RegExp("^([:.#]*)(" + 
-                       ( jQuery.chars = "(?:[\\w\u0128-\uFFFF*_-]|\\\\.)" ) + "+)")
+                       ( jQuery.chars = jQuery.browser.safari && jQuery.browser.version < "3.0.0" ? "\\w" : "(?:[\\w\u0128-\uFFFF*_-]|\\\\.)" ) + "+)")
        ],
 
        multiFilter: function( expr, elems, not ) {