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
35784a82
Commit
35784a82
authored
Apr 07, 2013
by
Michał Gołębiowski
Committed by
Dave Methvin
Apr 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #13743. Remove deprecated support.boxModel. Close gh-1231.
add myself to AUTHORS.txt
parent
0db70aa1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
19 deletions
+2
-19
AUTHORS.txt
AUTHORS.txt
+1
-0
support.js
src/support.js
+0
-3
support.js
test/unit/support.js
+1
-16
No files found.
AUTHORS.txt
View file @
35784a82
...
@@ -162,4 +162,5 @@ Jean Boussier <jean.boussier@gmail.com>
...
@@ -162,4 +162,5 @@ Jean Boussier <jean.boussier@gmail.com>
Adam Coulombe <me@adam.co>
Adam Coulombe <me@adam.co>
Andrew Plummer <plummer.andrew@gmail.com>
Andrew Plummer <plummer.andrew@gmail.com>
Dmitry Gusev <dmitry.gusev@gmail.com>
Dmitry Gusev <dmitry.gusev@gmail.com>
Michał Gołębiowski <m.goleb@gmail.com>
Brandon Johnson <bjohn465+github@gmail.com>
Brandon Johnson <bjohn465+github@gmail.com>
src/support.js
View file @
35784a82
...
@@ -66,9 +66,6 @@ jQuery.support = (function( support ) {
...
@@ -66,9 +66,6 @@ jQuery.support = (function( support ) {
// Where outerHTML is undefined, this still works
// Where outerHTML is undefined, this still works
support
.
html5Clone
=
document
.
createElement
(
"nav"
).
cloneNode
(
true
).
outerHTML
!==
"<:nav></:nav>"
;
support
.
html5Clone
=
document
.
createElement
(
"nav"
).
cloneNode
(
true
).
outerHTML
!==
"<:nav></:nav>"
;
// jQuery.support.boxModel DEPRECATED in 1.8 since we don't support Quirks Mode
support
.
boxModel
=
document
.
compatMode
===
"CSS1Compat"
;
// Will be defined later
// Will be defined later
support
.
inlineBlockNeedsLayout
=
false
;
support
.
inlineBlockNeedsLayout
=
false
;
support
.
shrinkWrapBlocks
=
false
;
support
.
shrinkWrapBlocks
=
false
;
...
...
test/unit/support.js
View file @
35784a82
module
(
"support"
,
{
teardown
:
moduleTeardown
});
module
(
"support"
,
{
teardown
:
moduleTeardown
});
test
(
"boxModel"
,
function
()
{
expect
(
1
);
equal
(
jQuery
.
support
.
boxModel
,
document
.
compatMode
===
"CSS1Compat"
,
"jQuery.support.boxModel is sort of tied to quirks mode but unstable since 1.8"
);
});
test
(
"zoom of doom (#13089)"
,
function
()
{
test
(
"zoom of doom (#13089)"
,
function
()
{
expect
(
1
);
expect
(
1
);
...
@@ -76,7 +70,6 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo
...
@@ -76,7 +70,6 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo
"radioValue"
:
true
,
"radioValue"
:
true
,
"checkClone"
:
true
,
"checkClone"
:
true
,
"appendChecked"
:
true
,
"appendChecked"
:
true
,
"boxModel"
:
true
,
"reliableHiddenOffsets"
:
true
,
"reliableHiddenOffsets"
:
true
,
"ajax"
:
true
,
"ajax"
:
true
,
"cors"
:
true
,
"cors"
:
true
,
...
@@ -110,7 +103,6 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo
...
@@ -110,7 +103,6 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo
"radioValue"
:
false
,
"radioValue"
:
false
,
"checkClone"
:
true
,
"checkClone"
:
true
,
"appendChecked"
:
true
,
"appendChecked"
:
true
,
"boxModel"
:
true
,
"reliableHiddenOffsets"
:
true
,
"reliableHiddenOffsets"
:
true
,
"ajax"
:
true
,
"ajax"
:
true
,
"cors"
:
true
,
"cors"
:
true
,
...
@@ -144,7 +136,6 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo
...
@@ -144,7 +136,6 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo
"radioValue"
:
false
,
"radioValue"
:
false
,
"checkClone"
:
true
,
"checkClone"
:
true
,
"appendChecked"
:
true
,
"appendChecked"
:
true
,
"boxModel"
:
true
,
"reliableHiddenOffsets"
:
true
,
"reliableHiddenOffsets"
:
true
,
"ajax"
:
true
,
"ajax"
:
true
,
"cors"
:
true
,
"cors"
:
true
,
...
@@ -178,7 +169,6 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo
...
@@ -178,7 +169,6 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo
"radioValue"
:
false
,
"radioValue"
:
false
,
"checkClone"
:
true
,
"checkClone"
:
true
,
"appendChecked"
:
true
,
"appendChecked"
:
true
,
"boxModel"
:
true
,
"reliableHiddenOffsets"
:
true
,
"reliableHiddenOffsets"
:
true
,
"ajax"
:
true
,
"ajax"
:
true
,
"cors"
:
false
,
"cors"
:
false
,
...
@@ -212,7 +202,6 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo
...
@@ -212,7 +202,6 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo
"radioValue"
:
false
,
"radioValue"
:
false
,
"checkClone"
:
true
,
"checkClone"
:
true
,
"appendChecked"
:
true
,
"appendChecked"
:
true
,
"boxModel"
:
true
,
"reliableHiddenOffsets"
:
false
,
"reliableHiddenOffsets"
:
false
,
"ajax"
:
true
,
"ajax"
:
true
,
"cors"
:
false
,
"cors"
:
false
,
...
@@ -223,7 +212,6 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo
...
@@ -223,7 +212,6 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo
expected
=
{
expected
=
{
"ajax"
:
true
,
"ajax"
:
true
,
"appendChecked"
:
false
,
"appendChecked"
:
false
,
"boxModel"
:
true
,
"changeBubbles"
:
false
,
"changeBubbles"
:
false
,
"checkClone"
:
false
,
"checkClone"
:
false
,
"checkOn"
:
true
,
"checkOn"
:
true
,
...
@@ -280,7 +268,6 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo
...
@@ -280,7 +268,6 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo
"radioValue"
:
false
,
"radioValue"
:
false
,
"checkClone"
:
false
,
"checkClone"
:
false
,
"appendChecked"
:
false
,
"appendChecked"
:
false
,
"boxModel"
:
true
,
"reliableHiddenOffsets"
:
false
,
"reliableHiddenOffsets"
:
false
,
"ajax"
:
true
,
"ajax"
:
true
,
"cors"
:
false
,
"cors"
:
false
,
...
@@ -314,7 +301,6 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo
...
@@ -314,7 +301,6 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo
"radioValue"
:
true
,
"radioValue"
:
true
,
"checkClone"
:
false
,
"checkClone"
:
false
,
"appendChecked"
:
false
,
"appendChecked"
:
false
,
"boxModel"
:
true
,
"reliableHiddenOffsets"
:
true
,
"reliableHiddenOffsets"
:
true
,
"ajax"
:
true
,
"ajax"
:
true
,
"cors"
:
true
,
"cors"
:
true
,
...
@@ -348,7 +334,6 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo
...
@@ -348,7 +334,6 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo
"radioValue"
:
true
,
"radioValue"
:
true
,
"checkClone"
:
true
,
"checkClone"
:
true
,
"appendChecked"
:
true
,
"appendChecked"
:
true
,
"boxModel"
:
true
,
"reliableHiddenOffsets"
:
true
,
"reliableHiddenOffsets"
:
true
,
"ajax"
:
true
,
"ajax"
:
true
,
"cors"
:
true
,
"cors"
:
true
,
...
@@ -359,7 +344,7 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo
...
@@ -359,7 +344,7 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo
if
(
expected
)
{
if
(
expected
)
{
test
(
"Verify that the support tests resolve as expected per browser"
,
function
()
{
test
(
"Verify that the support tests resolve as expected per browser"
,
function
()
{
expect
(
3
1
);
expect
(
3
0
);
for
(
var
i
in
expected
)
{
for
(
var
i
in
expected
)
{
if
(
jQuery
.
ajax
||
i
!==
"ajax"
&&
i
!==
"cors"
)
{
if
(
jQuery
.
ajax
||
i
!==
"ajax"
&&
i
!==
"cors"
)
{
...
...
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