Skip to content
Permalink
Browse files

jquery core: Allowing whitespaces within the [6026] addition.

  • Loading branch information
flesler committed Jan 4, 2009
1 parent 12166e9 commit 0eaead0b919bf173b917cf874f953570ccd1a536
Showing with 1 addition and 1 deletion.
  1. +1 −1 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] ) ];
}

0 comments on commit 0eaead0

Please sign in to comment.
You can’t perform that action at this time.