Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More
Archyvinta

Why does Firefox treat the <noscript> tags and html comments i.e. <!-- --> differently than other browsers?

cor-el replied
haydeeflor

Hi there,

I just wanted to point out that Firefox is using the following tags differently from IE, Chrome and Opera (haven't looked at Safari yet): * are treated like text almost. Also my comment out tag,

Hi there, I just wanted to point out that Firefox is using the following tags differently from IE, Chrome and Opera (haven't looked at Safari yet): * <noscript> * <!-- --> When I view source it looks like: * In Firefox everything between <noscript> & </noscript> are treated like text almost. Also my comment out tag, <!--, is ignored. * In all other browsers, everything between <!-- and a corresponding closing tag is commented out as I'm expecting. I think you can see what I'm trying to do here... Cheers, Leo

All Replies (1)

That is how source viewer that displays the source works.
If you want to see what happens then you need to use the DOM Inspector.

I only see this code after the ending </html> on the page that you linked to and that is of course invalid code (looks like a leftover from a previous edit). There are also unmatched comment tags (--) in that text (each two dashes toggle the comment state)

</body>
</html>
 <script><!--
</iframe></noscript></object></layer></span></div></table></body></html><!-- adsok -->
<script language='javascript' src='https://a12.alphagodaddy.com/hosting_ads/gd01.js'></script>