Added support for .text() on text nodes. Fixes #5525.
This commit is contained in:
parent
c08474580c
commit
b30af34f28
2 changed files with 15 additions and 10 deletions
|
@ -4,9 +4,12 @@ var bareObj = function(value) { return value; };
|
|||
var functionReturningObj = function(value) { return (function() { return value; }); };
|
||||
|
||||
test("text()", function() {
|
||||
expect(1);
|
||||
expect(2);
|
||||
var expected = "This link has class=\"blog\": Simon Willison's Weblog";
|
||||
equals( jQuery('#sap').text(), expected, 'Check for merged text of more then one element.' );
|
||||
|
||||
// Check serialization of text values
|
||||
equals( jQuery(document.createTextNode("foo")).text(), "foo", "Text node was retreived from .text()." );
|
||||
});
|
||||
|
||||
var testWrap = function(val) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue