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
7a2a82ba
Commit
7a2a82ba
authored
Dec 19, 2012
by
Oleg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove tbody check
parent
c1c97b47
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
21 deletions
+1
-21
manipulation.js
src/manipulation.js
+0
-20
support.js
src/support.js
+1
-1
No files found.
src/manipulation.js
View file @
7a2a82ba
...
@@ -615,26 +615,6 @@ jQuery.extend({
...
@@ -615,26 +615,6 @@ jQuery.extend({
tmp
=
tmp
.
lastChild
;
tmp
=
tmp
.
lastChild
;
}
}
// Remove IE's autoinserted <tbody> from table fragments
if
(
!
jQuery
.
support
.
tbody
)
{
// String was a <table>, *may* have spurious <tbody>
elem
=
tag
===
"table"
&&
!
rtbody
.
test
(
elem
)
?
tmp
.
firstChild
:
// String was a bare <thead> or <tfoot>
wrap
[
1
]
===
"<table>"
&&
!
rtbody
.
test
(
elem
)
?
tmp
:
0
;
j
=
elem
&&
elem
.
childNodes
.
length
;
while
(
j
--
)
{
if
(
jQuery
.
nodeName
(
(
tbody
=
elem
.
childNodes
[
j
]),
"tbody"
)
&&
!
tbody
.
childNodes
.
length
)
{
elem
.
removeChild
(
tbody
);
}
}
}
jQuery
.
merge
(
ret
,
tmp
.
childNodes
);
jQuery
.
merge
(
ret
,
tmp
.
childNodes
);
// Fix #12392 for WebKit and IE > 9
// Fix #12392 for WebKit and IE > 9
...
...
src/support.js
View file @
7a2a82ba
...
@@ -5,7 +5,7 @@ jQuery.support = (function() {
...
@@ -5,7 +5,7 @@ jQuery.support = (function() {
// Setup
// Setup
div
.
setAttribute
(
"className"
,
"t"
);
div
.
setAttribute
(
"className"
,
"t"
);
div
.
innerHTML
=
"<
table></table><
a href='/a'>a</a><input type='checkbox'/>"
;
div
.
innerHTML
=
"<a href='/a'>a</a><input type='checkbox'/>"
;
// Support tests won't run in some limited or non-browser environments
// Support tests won't run in some limited or non-browser environments
all
=
div
.
getElementsByTagName
(
"*"
);
all
=
div
.
getElementsByTagName
(
"*"
);
...
...
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