mirror of
https://github.com/jquery/jquery.git
synced 2026-02-03 09:54:58 -05:00
Fix #11721. Remove jQuery.boxModel, deprecate jQuery.support.boxModel.
This removes all internal uses of `jQuery.support.boxModel`. jQuery has never run unit tests with Quirks Mode and has not even feigned support for several years, so these remnants weren't doing much except giving false hope. For now, `jQuery.support.boxModel` continues to have a value indicating whether the W3C box model is *generally* in use, but be aware that this is easily overridden on an element-by-element basis by the `box-model` CSS property. So don't trust this value.
This commit is contained in:
committed by
Dave Methvin
parent
f76518e393
commit
c4e22ad8b5
@@ -1,9 +0,0 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<body>
|
||||
<script src="../include_js.php"></script>
|
||||
<script>
|
||||
jQuery(function() { window.parent.iframeCallback( document.compatMode, jQuery.support.boxModel ) });
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -342,7 +342,7 @@ testIframe("offset/table", "table", function( jQuery ) {
|
||||
});
|
||||
|
||||
testIframe("offset/scroll", "scroll", function( jQuery, win ) {
|
||||
expect(24);
|
||||
expect(26);
|
||||
|
||||
var ie = jQuery.browser.msie && parseInt( jQuery.browser.version, 10 ) < 8;
|
||||
|
||||
@@ -397,6 +397,12 @@ testIframe("offset/scroll", "scroll", function( jQuery, win ) {
|
||||
notEqual( jQuery().scrollLeft(null), null, "jQuery().scrollLeft(null) testing setter on empty jquery object" );
|
||||
strictEqual( jQuery().scrollTop(), null, "jQuery().scrollTop(100) testing setter on empty jquery object" );
|
||||
strictEqual( jQuery().scrollLeft(), null, "jQuery().scrollLeft(100) testing setter on empty jquery object" );
|
||||
|
||||
// test setting scroll
|
||||
jQuery( win ).scrollTop( 100 );
|
||||
jQuery( win ).scrollLeft( 101 );
|
||||
equal( jQuery( win ).scrollTop(), 100, "jQuery( win ).scrollTop() testing setter" );
|
||||
equal( jQuery( win ).scrollLeft(), 101, "jQuery( win ).scrollLeft() testing setter" );
|
||||
});
|
||||
|
||||
testIframe("offset/body", "body", function( jQuery ) {
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
module("support", { teardown: moduleTeardown });
|
||||
|
||||
testIframeWithCallback( "proper boxModel in compatMode CSS1Compat (IE6 and IE7)", "support/boxModelIE", function( compatMode, boxModel ) {
|
||||
ok( compatMode !== "CSS1Compat" || boxModel, "boxModel properly detected" );
|
||||
});
|
||||
ok( jQuery.support.boxModel, "jQuery.support.boxModel is perpetually true since 1.8" );
|
||||
|
||||
testIframeWithCallback( "body background is not lost if set prior to loading jQuery (#9238)", "support/bodyBackground", function( color, support ) {
|
||||
expect( 2 );
|
||||
|
||||
Reference in New Issue
Block a user