Vanishing DIV in Mozilla
Warning Mozilla users! The page as you are seeing it is incomplete (no navigation, no footer...) See the coding index if you want something un-broken.
Explanation and Solution
Two nice people I know (Script and Davezilla) had a similar problem, which found a similar resolution: having redesigned their sites, a <div> at the bottom of their pages refused to display in Mozilla.
In both cases, the vanishing <div> came just after the code required for a popular stats and counter service: Sitemeter. By removing the sitemeter code and placing it at the very end of the page (just before the </body> tag), the vanishing <div> displayed normally.
I've narrowed down the culprit to these two lines:
<script type="text/javascript">var site="sm5tarastar"</script>
<script type="text/javascript" src="http://sm5.sitemeter.com/js/counter.js?site=sm5tarastar"></script>
I'm not quite sure yet why it does it, though. Peruse the :::discussion::: above if you have any bright ideas! Workarounds are welcome too, as the present one simply avoids the problem by not placing anything important after the sitemeter code.
Updates:
- [21.04.02] - This mozilla bug report seems to point out to the same problem.
- [21.04.02] - Page displays correctly with build 2002041712 (OS X/1.0RC1) [thanks Chris]. Any idea why there are two sitemeter icons in the page footer, though? Is it because something isn't commented out properly by the js file?
- [21.04.02] - If you have Mozilla, thanks for checking and letting me know which build/OS you are using, and if the text at the bottom of this page displays or not.
- [23.04.02] - This is not a Mozilla bug. It is a problem with the sitemeter code (an unclosed comment tag generated by the script, which comments out the rest of the page). It can be fixed by adding
var g_leavenoscript="true";between the two<script>tags (see source lower down, until I update this page properly)
Technical Considerations
I've been doing some experiments to narrow down the problem. Here is what I've come up with.
If both lines of code are included, the rest of the page is not displayed. It is exemplified on this page (Mozilla users will have to view source to understand).
If only the first line of code is included, the end of the page seems to display normally.
If only the second line of code indicated above is included (that is, if you remove the first line), the <div> which follows it will display, but with a surprise in store (demonstrated in the next two paragraphs—code and screenshot of result).
Code
<script type="text/javascript" src="http://sm5.sitemeter.com/js/counter.js?site=sm5tarastar"></script>
<div style="border: 1px solid black; font-weight: bold; font-size: 1.2em; color: red;">
Mozilla users don't see this!
</div>
Well, they do, but I didn't know that yet when I did the experiment!
Result in Mozilla

Note the path in the status bar. Note too that the text in question was coded as plain text, and not as a link! I highly suspect the beginning of the answer to the why question lies in what you see here.
Demonstration
I've included just below this paragraph the sitemeter code which creates this trouble, followed by some text which Mozilla users should not see (and of course, they won't get the footer and bottom of my page either - but that's a small price to pay):
Mozilla users: view source!




