diff options
author | Ariel Flesler <aflesler@gmail.com> | 2009-01-04 21:09:03 +0000 |
---|---|---|
committer | Ariel Flesler <aflesler@gmail.com> | 2009-01-04 21:09:03 +0000 |
commit | 0eaead0b919bf173b917cf874f953570ccd1a536 (patch) | |
tree | 3f82ed65a1c173f056ee2a78878d6486856a6721 /src/core.js | |
parent | 12166e9bb2684f294bdde5ecf106a548ed7370b4 (diff) | |
download | jquery-0eaead0b919bf173b917cf874f953570ccd1a536.tar.gz jquery-0eaead0b919bf173b917cf874f953570ccd1a536.zip |
jquery core: Allowing whitespaces within the [6026] addition.
Diffstat (limited to 'src/core.js')
-rw-r--r-- | src/core.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js index 8c4c09b46..9330dd722 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] ) ]; } |