From: jeresig Date: Mon, 30 Nov 2009 18:42:26 +0000 (-0500) Subject: Merge branch 'master' of github.com:jquery/jquery X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=df6e02a4a7d8da037ebdb812e6b92a067223a6ea;p=jquery.git Merge branch 'master' of github.com:jquery/jquery --- df6e02a4a7d8da037ebdb812e6b92a067223a6ea diff --cc src/core.js index e766529,bdc6b2f..5da31e6 --- a/src/core.js +++ b/src/core.js @@@ -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(),