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
0d16158f
Commit
0d16158f
authored
Dec 19, 2012
by
Oleg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert changes in support module
parent
3eb1f649
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
support.js
src/support.js
+12
-1
No files found.
src/support.js
View file @
0d16158f
...
@@ -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
=
"<a href='/a'>a</a><input type='checkbox'/>"
;
div
.
innerHTML
=
"
<link/><table></table>
<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
(
"*"
);
...
@@ -24,10 +24,17 @@ jQuery.support = (function() {
...
@@ -24,10 +24,17 @@ jQuery.support = (function() {
// Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
// Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
getSetAttribute
:
div
.
className
!==
"t"
,
getSetAttribute
:
div
.
className
!==
"t"
,
// IE strips leading whitespace when .innerHTML is used
leadingWhitespace
:
div
.
firstChild
.
nodeType
===
3
,
// Make sure that tbody elements aren't automatically inserted
// Make sure that tbody elements aren't automatically inserted
// IE will insert them into empty tables
// IE will insert them into empty tables
tbody
:
!
div
.
getElementsByTagName
(
"tbody"
).
length
,
tbody
:
!
div
.
getElementsByTagName
(
"tbody"
).
length
,
// Make sure that link elements get serialized correctly by innerHTML
// This requires a wrapper element in IE
htmlSerialize
:
!!
div
.
getElementsByTagName
(
"link"
).
length
,
// Get the style information from getAttribute
// Get the style information from getAttribute
// (IE uses .cssText instead)
// (IE uses .cssText instead)
style
:
/top/
.
test
(
a
.
getAttribute
(
"style"
)
),
style
:
/top/
.
test
(
a
.
getAttribute
(
"style"
)
),
...
@@ -55,6 +62,10 @@ jQuery.support = (function() {
...
@@ -55,6 +62,10 @@ jQuery.support = (function() {
// Tests for enctype support on a form (#6743)
// Tests for enctype support on a form (#6743)
enctype
:
!!
document
.
createElement
(
"form"
).
enctype
,
enctype
:
!!
document
.
createElement
(
"form"
).
enctype
,
// Makes sure cloning an html5 element does not cause problems
// Where outerHTML is undefined, this still works
html5Clone
:
document
.
createElement
(
"nav"
).
cloneNode
(
true
).
outerHTML
!==
"<:nav></:nav>"
,
// jQuery.support.boxModel DEPRECATED in 1.8 since we don't support Quirks Mode
// jQuery.support.boxModel DEPRECATED in 1.8 since we don't support Quirks Mode
boxModel
:
document
.
compatMode
===
"CSS1Compat"
,
boxModel
:
document
.
compatMode
===
"CSS1Compat"
,
...
...
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