]> source.dussan.org Git - jquery.git/commitdiff
Merge branch 'master' of github.com:jquery/jquery
authorjeresig <jeresig@gmail.com>
Mon, 30 Nov 2009 18:42:26 +0000 (13:42 -0500)
committerjeresig <jeresig@gmail.com>
Mon, 30 Nov 2009 18:42:26 +0000 (13:42 -0500)
1  2 
src/core.js

diff --cc src/core.js
index e766529affaabb2b31f8f83d6a4be3049d6dfc38,bdc6b2f5ee298fb47d87484f2d58e6d16d6759a9..5da31e6a622f827ceac006da786a7fe1c8470036
@@@ -29,10 -29,10 +29,10 @@@ var jQuery = function( selector, contex
        rnotwhite = /\S/,
  
        // Used for trimming whitespace
-       rtrim = /^\s+|\s+$/g,
+       rtrim = /(\s|\u00A0)+|(\s|\u00A0)+$/g,
  
        // Match a standalone tag
 -      rsingleTag = /<(\w+)\s*\/?>(?:<\/\1>)?$/,
 +      rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
  
        // Keep a UserAgent string for use with jQuery.browser
        userAgent = navigator.userAgent.toLowerCase(),