From 0eaead0b919bf173b917cf874f953570ccd1a536 Mon Sep 17 00:00:00 2001 From: Ariel Flesler Date: Sun, 4 Jan 2009 21:09:03 +0000 Subject: [PATCH] jquery core: Allowing whitespaces within the [6026] addition. --- src/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.js b/src/core.js index 8c4c09b..9330dd7 100644 --- a/src/core.js +++ b/src/core.js @@ -825,7 +825,7 @@ jQuery.extend({ // If a single string is passed in and it's a single tag // just do a createElement and skip the rest if ( !fragment && elems.length === 1 && typeof elems[0] === "string" ) { - var match = /^<(\w+)\/?>$/.exec(elems[0]); + var match = /^<(\w+)\s*\/?>$/.exec(elems[0]); if ( match ) return [ context.createElement( match[1] ) ]; } -- 1.7.10.4