Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Release: remove revert artefacts
- Loading branch information
Showing
with
4 additions
and
4 deletions.
-
+2
−2
src/core/init.js
-
+1
−1
test/unit/core.js
-
+1
−1
test/unit/manipulation.js
|
|
@@ -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(); |
|
|
}); |
|
|
}); |