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 4de4be4 commit d829804Copy full SHA for d829804
AUTHORS.txt
@@ -156,4 +156,4 @@ Matthias Jäggli <matthias.jaeggli@gmail.com>
156
Yiming He <yiminghe@gmail.com>
157
Devin Cooper <cooper.semantics@gmail.com>
158
Bennett Sorbo <bsorbo@gmail.com>
159
-
+Sebastian Burkhard <sebi.burkhard@gmail.com>
src/core.js
@@ -96,8 +96,8 @@ jQuery.fn = jQuery.prototype = {
96
return this;
97
}
98
99
- // HANDLE: $(DOMElement)
100
- if ( selector.nodeType ) {
+ // HANDLE: $(DOMElement); check first that selector is not a primitive
+ if ( typeof selector === "object" && selector.nodeType ) {
101
this.context = this[0] = selector;
102
this.length = 1;
103
0 commit comments