Firefox messes with contents :@

Firefox is a good browser (some say its the best) and I personally use it. But there are certain things about Firefox that I don't like. One is it messing with the page contents.

Here is an example. Try putting this somewhere on your page
CODE:
<script type="text/javascript">
<!--
    // some javascript
//-->

The rest of the page contents

Notice an major flaw? An unclosed <script> . When viewing such a page on IE, you see nothing after the <script> tag, i.e, "The rest of the page contents" and all go invisible. Seeing that, you can figure out that something is wrong with the page and inturn, debug it. But weird enough, Firefox fixes this by itself and renders the page as normal :S And you never come to know about the flaw. This has happened to me, big time.

Then a second example. Put this code somewhere in your html page.
CODE:
<<<EOF;

EOF;
Apples and Oranges

Open the page in firefox and view the page's source.

You'll see this
CODE:
<<<EOF;

EOF;
Apples and Oranges
>

See an extra ">", that's the weird firefox's weird act icon_neutral
Posted by Vishnu   www
on August 6, 2005, 7:50 pm
You are right
My site was a real mess in firefox
Its clear in IE

( Reply to this comment )
Posted by Kailash Nadh  
on August 7, 2005, 10:04 am
eh no. That is not correct. Actually, Firefox renders webpages following the web standards. The problem with your page is that it isnt optimized properly for all browsers. But what I said is an entirely different thing.

( Reply to this comment )
Posted by Nick  
on November 10, 2005, 9:56 pm
That's why you test your site with all browsers.

And why you never ever use Word or Front Page to make a webpage.

You can run your website through this to make sure it is compliant with W3C standards.

http://validator.w3.org/

( Reply to this comment )