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:
Mike Sherov
2012-05-14 21:02:42 -04:00
committed by Dave Methvin
parent f76518e393
commit c4e22ad8b5
6 changed files with 14 additions and 20 deletions

2
src/effects.js vendored
View File

@@ -681,7 +681,7 @@ function defaultDisplay( nodeName ) {
// document to it; WebKit & Firefox won't allow reusing the iframe document.
if ( !iframeDoc || !iframe.createElement ) {
iframeDoc = ( iframe.contentWindow || iframe.contentDocument ).document;
iframeDoc.write( ( jQuery.support.boxModel ? "<!doctype html>" : "" ) + "<html><body>" );
iframeDoc.write("<!doctype html><html><body>");
iframeDoc.close();
}