boxModel detection

boxModel detection


Today I've stumbled upon a problem with boxModel detection already
reported as many different bugs: http://dev.jquery.com/ticket/4267,
http://dev.jquery.com/ticket/4320,
http://dev.jquery.com/ticket/4406,
http://dev.jquery.com/ticket/4552,
http://dev.jquery.com/ticket/4558,
and also in a recent message here by Andrea Giammarchi related to his
sandboxing issues.
It occurs at line 3204 of jquery-1.3.2.js, when the page you are
showing is visibly incomplete, and you click a (redirect) link already
available. In my case, the page contains seven visible IFRAMEs and two
hidden.
My solution has been to include lines 3204 - 3206 into an if
(document.body) and to downgrade boxModel detection to the method from
an older version of jQuery in the else clause. Is this correct?
Are there better solutions?