aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortimmywil <timmywillisn@gmail.com>2011-11-08 15:46:48 -0500
committertimmywil <timmywillisn@gmail.com>2011-11-08 15:47:03 -0500
commit0cc806fd88c4dadb0904c7d0b68014520ff668b9 (patch)
tree8bd406d8910883bcfe7f577d6da4dfe77cfb72ba
parentcc4a999648d2623972e6dabad0e6c4b1bb60458a (diff)
downloadjquery-0cc806fd88c4dadb0904c7d0b68014520ff668b9.tar.gz
jquery-0cc806fd88c4dadb0904c7d0b68014520ff668b9.zip
Update Sizzle. Adds document to acceptable nodeTypes for .text(). Fixes #10724.
m---------src/sizzle0
-rw-r--r--test/unit/manipulation.js3
2 files changed, 2 insertions, 1 deletions
diff --git a/src/sizzle b/src/sizzle
-Subproject d4e5c22e7ee8aa5751fc8d4d4f21d7ed5ff04a4
+Subproject 2e664828f3e0a17d70ef4bf69322e06da04eb40
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js
index 1f0288540..1c426a7c3 100644
--- a/test/unit/manipulation.js
+++ b/test/unit/manipulation.js
@@ -7,12 +7,13 @@ var bareObj = function(value) { return value; };
var functionReturningObj = function(value) { return (function() { return value; }); };
test("text()", function() {
- expect(2);
+ expect(3);
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." );
// Check serialization of text values
equal( jQuery(document.createTextNode("foo")).text(), "foo", "Text node was retreived from .text()." );
+ notEqual( jQuery(document).text(), "", "Retrieving text for the document retrieves all text (#10724).");
});
var testText = function(valueObj) {