mirror of
https://github.com/jquery/jquery.git
synced 2026-02-06 01:45:08 -05:00
Made jQuery('<div/>') and jQuery('<div></div>') use the same code path (making the second one faster). Fixes #5293.
This commit is contained in:
@@ -32,7 +32,7 @@ var jQuery = function( selector, context ) {
|
||||
rtrim = /^\s+|\s+$/g,
|
||||
|
||||
// Match a standalone tag
|
||||
rsingleTag = /^<(\w+)\s*\/?>$/,
|
||||
rsingleTag = /<(\w+)\s*\/?>(?:<\/\1>)?$/,
|
||||
|
||||
// Keep a UserAgent string for use with jQuery.browser
|
||||
userAgent = navigator.userAgent.toLowerCase(),
|
||||
|
||||
Reference in New Issue
Block a user