Fixed boxModel support - is now computed with feature detection, rather than sniffing.

This commit is contained in:
John Resig 2009-01-11 16:17:20 +00:00
parent 0066ba3f82
commit 7346a476cc
3 changed files with 14 additions and 5 deletions

View file

@ -1146,9 +1146,6 @@ jQuery.browser = {
mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent )
};
// Check to see if the W3C box model is being used
jQuery.boxModel = !jQuery.browser.msie || document.compatMode == "CSS1Compat";
jQuery.each({
parent: function(elem){return elem.parentNode;},
parents: function(elem){return jQuery.dir(elem,"parentNode");},