Check for #8984 wasn't strong enough, enhanced.
This commit is contained in:
parent
6c449fd5df
commit
ca338dc749
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ jQuery.fn = jQuery.prototype = {
|
||||||
// Handle HTML strings
|
// Handle HTML strings
|
||||||
if ( typeof selector === "string" ) {
|
if ( typeof selector === "string" ) {
|
||||||
// Are we dealing with HTML string or an ID?
|
// Are we dealing with HTML string or an ID?
|
||||||
if ( selector.charAt(0) === "<" || selector.charAt( selector.length - 1 ) === ">" ) {
|
if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
|
||||||
// Assume that strings that start and end with <> are HTML and skip the regex check
|
// Assume that strings that start and end with <> are HTML and skip the regex check
|
||||||
match = [ null, selector, null ];
|
match = [ null, selector, null ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue