]> source.dussan.org Git - jquery.git/commitdiff
Update Sizzle and add test for sizzle getText fix. Removes usage of innerText. Fixes...
authortimmywil <timmywillisn@gmail.com>
Fri, 30 Mar 2012 21:09:46 +0000 (17:09 -0400)
committertimmywil <timmywillisn@gmail.com>
Fri, 30 Mar 2012 21:10:25 +0000 (17:10 -0400)
src/sizzle
test/unit/manipulation.js

index fe2f618106bb76857b229113d6d11653707d0b22..feebbd7e053bff426444c7b348c776c99c7490ee 160000 (submodule)
@@ -1 +1 @@
-Subproject commit fe2f618106bb76857b229113d6d11653707d0b22
+Subproject commit feebbd7e053bff426444c7b348c776c99c7490ee
index 18e1b8d67ee185e17b6bdd8c400266bb76b59fff..ff31c4db4350c607965baf53eb5c3c89eddc0e18 100644 (file)
@@ -7,7 +7,7 @@ var bareObj = function(value) { return value; };
 var functionReturningObj = function(value) { return (function() { return value; }); };
 
 test("text()", function() {
-       expect(4);
+       expect(5);
        var expected = "This link has class=\"blog\": Simon Willison's Weblog";
        equal( jQuery("#sap").text(), expected, "Check for merged text of more then one element." );
 
@@ -20,6 +20,10 @@ test("text()", function() {
                frag.appendChild( document.createTextNode("foo") );
 
        equal( jQuery( frag ).text(), "foo", "Document Fragment Text node was retreived from .text().");
+
+       var $newLineTest = jQuery("<div>test<br/>testy</div>").appendTo("#moretests");
+       $newLineTest.find("br").replaceWith("\n");
+       equal( $newLineTest.text(), "test\ntesty", "text() does not remove new lines (#11153)" );
 });
 
 test("text(undefined)", function() {