jquery core: Allowing whitespaces within the [6026] addition.
This commit is contained in:
parent
12166e9bb2
commit
0eaead0b91
1 changed files with 1 additions and 1 deletions
|
@ -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] ) ];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue