mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Release: remove revert artefacts
This commit is contained in:
parent
793925ff3b
commit
3655260866
@ -80,7 +80,7 @@ var rootjQuery,
|
||||
|
||||
// Inject the element directly into the jQuery object
|
||||
this.length = 1;
|
||||
this[0] = elem;
|
||||
this[ 0 ] = elem;
|
||||
}
|
||||
|
||||
this.context = document;
|
||||
@ -100,7 +100,7 @@ var rootjQuery,
|
||||
|
||||
// HANDLE: $(DOMElement)
|
||||
} else if ( selector.nodeType ) {
|
||||
this.context = this[0] = selector;
|
||||
this.context = this[ 0 ] = selector;
|
||||
this.length = 1;
|
||||
return this;
|
||||
|
||||
|
@ -1479,7 +1479,7 @@ QUnit.test("jQuery.parseHTML", function( assert ) {
|
||||
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)");
|
||||
|
||||
|
@ -2701,6 +2701,6 @@ QUnit.test( "Insert script with data-URI (gh-1887)", 1, function( assert ) {
|
||||
assert.ok( true, "data-URI script is not supported by this environment" );
|
||||
}
|
||||
|
||||
start();
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user