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
8db3fb13
Commit
8db3fb13
authored
Feb 10, 2012
by
Rick Waldron waldron.rick@gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix whitespace mismatch introduced in
bf7a4df2
parent
8618487c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
manipulation.js
src/manipulation.js
+1
-1
manipulation.js
test/unit/manipulation.js
+5
-5
No files found.
src/manipulation.js
View file @
8db3fb13
...
@@ -24,7 +24,7 @@ var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figca
...
@@ -24,7 +24,7 @@ var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figca
rhtml
=
/<|&#
?\w
+;/
,
rhtml
=
/<|&#
?\w
+;/
,
rnoInnerhtml
=
/<
(?:
script|style
)
/i
,
rnoInnerhtml
=
/<
(?:
script|style
)
/i
,
rnocache
=
/<
(?:
script|object|embed|option|style
)
/i
,
rnocache
=
/<
(?:
script|object|embed|option|style
)
/i
,
rnoshimcache
=
new
RegExp
(
"<(?:"
+
nodeNames
+
")[
\\
s/>]"
,
"i"
),
rnoshimcache
=
new
RegExp
(
"<(?:"
+
nodeNames
+
")[
\\
s/>]"
,
"i"
),
// checked="checked" or checked
// checked="checked" or checked
rchecked
=
/checked
\s
*
(?:[^
=
]
|=
\s
*.checked.
)
/i
,
rchecked
=
/checked
\s
*
(?:[^
=
]
|=
\s
*.checked.
)
/i
,
rscriptType
=
/
\/(
java|ecma
)
script/i
,
rscriptType
=
/
\/(
java|ecma
)
script/i
,
...
...
test/unit/manipulation.js
View file @
8db3fb13
...
@@ -1219,14 +1219,14 @@ test("clone() on XML nodes", function() {
...
@@ -1219,14 +1219,14 @@ test("clone() on XML nodes", function() {
}
}
test
(
"clone() on local XML nodes with html5 nodename"
,
function
()
{
test
(
"clone() on local XML nodes with html5 nodename"
,
function
()
{
expect
(
2
);
expect
(
2
);
var
$xmlDoc
=
jQuery
(
jQuery
.
parseXML
(
"<root><meter /></root>"
)
),
var
$xmlDoc
=
jQuery
(
jQuery
.
parseXML
(
"<root><meter /></root>"
)
),
$meter
=
$xmlDoc
.
find
(
"meter"
).
clone
();
$meter
=
$xmlDoc
.
find
(
"meter"
).
clone
();
equal
(
$meter
[
0
].
nodeName
,
"meter"
,
"Check if nodeName was not changed due to cloning"
);
equal
(
$meter
[
0
].
nodeName
,
"meter"
,
"Check if nodeName was not changed due to cloning"
);
equal
(
$meter
[
0
].
nodeType
,
1
,
"Check if nodeType is not changed due to cloning"
);
equal
(
$meter
[
0
].
nodeType
,
1
,
"Check if nodeType is not changed due to cloning"
);
}
);
});
test
(
"html(undefined)"
,
function
()
{
test
(
"html(undefined)"
,
function
()
{
expect
(
1
);
expect
(
1
);
...
...
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