Commit 0eaead0b authored by Ariel Flesler's avatar Ariel Flesler

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

parent 12166e9b
...@@ -825,7 +825,7 @@ jQuery.extend({ ...@@ -825,7 +825,7 @@ jQuery.extend({
// If a single string is passed in and it's a single tag // If a single string is passed in and it's a single tag
// just do a createElement and skip the rest // just do a createElement and skip the rest
if ( !fragment && elems.length === 1 && typeof elems[0] === "string" ) { if ( !fragment && elems.length === 1 && typeof elems[0] === "string" ) {
var match = /^<(\w+)\/?>$/.exec(elems[0]); var match = /^<(\w+)\s*\/?>$/.exec(elems[0]);
if ( match ) if ( match )
return [ context.createElement( match[1] ) ]; return [ context.createElement( match[1] ) ];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment