]> source.dussan.org Git - jquery.git/commitdiff
Fixed bug with singleTag matching in core.js.
authorjeresig <jeresig@gmail.com>
Mon, 30 Nov 2009 18:42:19 +0000 (13:42 -0500)
committerjeresig <jeresig@gmail.com>
Mon, 30 Nov 2009 18:42:19 +0000 (13:42 -0500)
src/core.js

index 3ba2a859d9682d85a0b499d60804ff0c81469dab..e766529affaabb2b31f8f83d6a4be3049d6dfc38 100644 (file)
@@ -32,7 +32,7 @@ var jQuery = function( selector, context ) {
        rtrim = /^\s+|\s+$/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(),