We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c449fd commit ca338dcCopy full SHA for ca338dc
src/core.js
@@ -96,7 +96,7 @@ jQuery.fn = jQuery.prototype = {
96
// Handle HTML strings
97
if ( typeof selector === "string" ) {
98
// Are we dealing with HTML string or an ID?
99
- if ( selector.charAt(0) === "<" || selector.charAt( selector.length - 1 ) === ">" ) {
+ if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
100
// Assume that strings that start and end with <> are HTML and skip the regex check
101
match = [ null, selector, null ];
102
0 commit comments