Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
0cc806fd
Commit
0cc806fd
authored
Nov 08, 2011
by
timmywil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Sizzle. Adds document to acceptable nodeTypes for .text(). Fixes #10724.
parent
cc4a9996
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
sizzle
src/sizzle
+1
-1
manipulation.js
test/unit/manipulation.js
+2
-1
No files found.
sizzle
@
2e664828
Subproject commit
d4e5c22e7ee8aa5751fc8d4d4f21d7ed5ff04a49
Subproject commit
2e664828f3e0a17d70ef4bf69322e06da04eb406
test/unit/manipulation.js
View file @
0cc806fd
...
@@ -7,12 +7,13 @@ var bareObj = function(value) { return value; };
...
@@ -7,12 +7,13 @@ var bareObj = function(value) { return value; };
var
functionReturningObj
=
function
(
value
)
{
return
(
function
()
{
return
value
;
});
};
var
functionReturningObj
=
function
(
value
)
{
return
(
function
()
{
return
value
;
});
};
test
(
"text()"
,
function
()
{
test
(
"text()"
,
function
()
{
expect
(
2
);
expect
(
3
);
var
expected
=
"This link has class=
\"
blog
\"
: Simon Willison's Weblog"
;
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."
);
equal
(
jQuery
(
"#sap"
).
text
(),
expected
,
"Check for merged text of more then one element."
);
// Check serialization of text values
// Check serialization of text values
equal
(
jQuery
(
document
.
createTextNode
(
"foo"
)).
text
(),
"foo"
,
"Text node was retreived from .text()."
);
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
)
{
var
testText
=
function
(
valueObj
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment