Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 961 Bytes

no-box-model.md

File metadata and controls

30 lines (21 loc) · 961 Bytes

$.boxModel/$.support.boxModel is deprecated

These two deprecated properties are false when the page is using Quirks mode, and true when the page is in standards mode. Quirks mode was never supported in jQuery so these properties were removed.

Do not use jQuery in Quirks mode, it has never been supported. See the previous item for solutions.

Rule Details

Examples of incorrect code for this rule:

if ($.boxModel) { /* ...snip... */ }
if ($.support.boxModel) { /* ...snip... */ }
if (jQuery.boxModel) { /* ...snip... */ }
if (jQuery.support.boxModel) { /* ...snip... */ }

Examples of correct code for this rule:

if (featureDetection.boxModel) { /* ...snip... */ }

Further Reading