Made jQuery('<div/>') and jQuery('<div></div>') use the same code path (making the second one faster). Fixes #5293.

This commit is contained in:
John Resig 2009-11-11 13:49:29 -05:00
parent d933e9c26d
commit c4c820efff
2 changed files with 5 additions and 2 deletions

View file

@ -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(),