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
8415e8a1
Commit
8415e8a1
authored
Feb 25, 2011
by
cmcnulty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
00a05ad9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
manipulation.js
test/unit/manipulation.js
+13
-0
No files found.
test/unit/manipulation.js
View file @
8415e8a1
...
@@ -1080,6 +1080,19 @@ var testHtml = function(valueObj) {
...
@@ -1080,6 +1080,19 @@ var testHtml = function(valueObj) {
equals
(
jQuery
(
"#main"
).
children
()[
0
].
nodeName
.
toUpperCase
(),
"STYLE"
,
"And that a style element was inserted."
);
equals
(
jQuery
(
"#main"
).
children
()[
0
].
nodeName
.
toUpperCase
(),
"STYLE"
,
"And that a style element was inserted."
);
QUnit
.
reset
();
QUnit
.
reset
();
jQuery
(
"#main"
).
html
(
valueObj
(
"<embed src='data/cow.jpg'></embed>"
));
ok
((
jQuery
(
"#main"
).
children
().
length
>
0
),
"Make sure there is a child EMBED element."
);
equals
(
jQuery
(
"#main"
).
children
()[
0
].
nodeName
.
toUpperCase
(),
"EMBED"
,
"And that an embed element was inserted."
);
QUnit
.
reset
();
jQuery
(
"#main"
).
html
(
valueObj
(
"<object data='data/cow.jpg'></object>"
));
equals
(
jQuery
(
"#main"
).
children
().
length
,
1
,
"Make sure there is a child OBJECT element."
);
equals
(
jQuery
(
"#main"
).
children
()[
0
].
nodeName
.
toUpperCase
(),
"OBJECT"
,
"And that an object element was inserted."
);
QUnit
.
reset
();
// using contents will get comments regular, text, and comment nodes
// using contents will get comments regular, text, and comment nodes
var
j
=
jQuery
(
"#nonnodes"
).
contents
();
var
j
=
jQuery
(
"#nonnodes"
).
contents
();
j
.
html
(
valueObj
(
"<b>bold</b>"
));
j
.
html
(
valueObj
(
"<b>bold</b>"
));
...
...
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