// Inject the element directly into the jQuery object
this.length = 1;
- this[0] = elem;
+ this[ 0 ] = elem;
}
this.context = document;
// HANDLE: $(DOMElement)
} else if ( selector.nodeType ) {
- this.context = this[0] = selector;
+ this.context = this[ 0 ] = selector;
this.length = 1;
return this;
assert.equal( jQuery.parseHTML(), null, "Nothing in, null out." );
assert.equal( jQuery.parseHTML( null ), null, "Null in, null out." );
assert.equal( jQuery.parseHTML( "" ), null, "Empty string in, null out." );
- throws(function() {
+ assert.throws(function() {
jQuery.parseHTML( "<div></div>", document.getElementById("form") );
}, "Passing an element as the context raises an exception (context should be a document)");