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
d092a88e
Commit
d092a88e
authored
Sep 11, 2013
by
Timmy Willison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set the input type for firefox. Fix a support test.
parent
03fdc70a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
support.js
src/manipulation/support.js
+2
-0
support.js
src/support.js
+3
-5
support.js
test/unit/support.js
+2
-2
No files found.
src/manipulation/support.js
View file @
d092a88e
...
@@ -7,6 +7,8 @@ define([
...
@@ -7,6 +7,8 @@ define([
div
=
document
.
createElement
(
"div"
),
div
=
document
.
createElement
(
"div"
),
input
=
document
.
createElement
(
"input"
);
input
=
document
.
createElement
(
"input"
);
input
.
type
=
"checkbox"
;
// Setup
// Setup
div
.
setAttribute
(
"className"
,
"t"
);
div
.
setAttribute
(
"className"
,
"t"
);
div
.
innerHTML
=
" <link/><table></table><a href='/a'>a</a>"
;
div
.
innerHTML
=
" <link/><table></table><a href='/a'>a</a>"
;
...
...
src/support.js
View file @
d092a88e
...
@@ -16,6 +16,8 @@ for ( i in jQuery( support ) ) {
...
@@ -16,6 +16,8 @@ for ( i in jQuery( support ) ) {
support
.
ownLast
=
i
!==
"0"
;
support
.
ownLast
=
i
!==
"0"
;
// Note: most support tests are defined in their respective modules.
// Note: most support tests are defined in their respective modules.
// false until the test is run
support
.
inlineBlockNeedsLayout
=
false
;
jQuery
(
function
()
{
jQuery
(
function
()
{
// We need to execute this one support test ASAP because we need to know
// We need to execute this one support test ASAP because we need to know
...
@@ -42,9 +44,6 @@ jQuery(function() {
...
@@ -42,9 +44,6 @@ jQuery(function() {
body
.
appendChild
(
container
).
appendChild
(
div
);
body
.
appendChild
(
container
).
appendChild
(
div
);
// Will be changed later if needed.
support
.
inlineBlockNeedsLayout
=
false
;
if
(
typeof
div
.
style
.
zoom
!==
strundefined
)
{
if
(
typeof
div
.
style
.
zoom
!==
strundefined
)
{
// Support: IE<8
// Support: IE<8
// Check if natively block-level elements act like inline-block
// Check if natively block-level elements act like inline-block
...
@@ -52,9 +51,8 @@ jQuery(function() {
...
@@ -52,9 +51,8 @@ jQuery(function() {
// them layout
// them layout
div
.
innerHTML
=
""
;
div
.
innerHTML
=
""
;
div
.
style
.
cssText
=
divReset
+
"width:1px;padding:1px;display:inline;zoom:1"
;
div
.
style
.
cssText
=
divReset
+
"width:1px;padding:1px;display:inline;zoom:1"
;
support
.
inlineBlockNeedsLayout
=
(
div
.
offsetWidth
===
3
);
if
(
support
.
inlineBlockNeedsLayout
)
{
if
(
(
support
.
inlineBlockNeedsLayout
=
div
.
offsetWidth
===
3
)
)
{
// Prevent IE 6 from affecting layout for positioned elements #11048
// Prevent IE 6 from affecting layout for positioned elements #11048
// Prevent IE from shrinking the body in IE 7 mode #12869
// Prevent IE from shrinking the body in IE 7 mode #12869
// Support: IE<8
// Support: IE<8
...
...
test/unit/support.js
View file @
d092a88e
module
(
"support"
,
{
teardown
:
moduleTeardown
});
module
(
"support"
,
{
teardown
:
moduleTeardown
});
var
computedSupport
=
getComputedSupport
(
jQuery
.
support
);
function
getComputedSupport
(
support
)
{
function
getComputedSupport
(
support
)
{
var
prop
,
var
prop
,
result
=
{};
result
=
{};
...
@@ -17,6 +15,8 @@ function getComputedSupport( support ) {
...
@@ -17,6 +15,8 @@ function getComputedSupport( support ) {
return
result
;
return
result
;
}
}
var
computedSupport
=
getComputedSupport
(
jQuery
.
support
);
test
(
"zoom of doom (#13089)"
,
function
()
{
test
(
"zoom of doom (#13089)"
,
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