]> source.dussan.org Git - jquery.git/commitdiff
Final fix for Safari crasher (bug #1331).
authorJohn Resig <jeresig@gmail.com>
Fri, 6 Jul 2007 13:36:38 +0000 (13:36 +0000)
committerJohn Resig <jeresig@gmail.com>
Fri, 6 Jul 2007 13:36:38 +0000 (13:36 +0000)
src/selector/selector.js

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