Skip to content
Permalink
Browse files

Update Sizzle. Adds document to acceptable nodeTypes for .text(). Fix…

…es #10724.
  • Loading branch information...
timmywil committed Nov 8, 2011
1 parent cc4a999 commit 0cc806fd88c4dadb0904c7d0b68014520ff668b9
Showing with 3 additions and 2 deletions.
  1. +1 −1 src/sizzle
  2. +2 −1 test/unit/manipulation.js
Submodule sizzle updated 1 files
+1 −1 sizzle.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) {

0 comments on commit 0cc806f

Please sign in to comment.
You can’t perform that action at this time.