Obviously this is user error, but I run into it a lot in our distributed
application. People complain that things are not showing up, but the
reason why is code has been inserted before the <doctype> tag. In
this instance, the jQuery height methods all return the wrong document height.
This is easy to reproduce. Use .height on any element to get the
proper height. Then insert this before the opening <doctype>
tag: <script>var error;</script>
Then try again. The height will be wrong.
Is this something that jQuery can account for, or will I just have
to always been on the lookout for it and let the user know what they
need to change?