Comment not read in Firefox

  • Thread starter Thread starter Trevor L.
  • Start date Start date
T

Trevor L.

I have an HTML file which is called from my website
Clicking on
About Us
Trevor
will call this file (picture.html)

There is a comment block at the top of the body enclosed by
<!-- and -->

Firefox is not reading <! and the rest of the comment is read as text and
printed to the page

Why?
--
Cheers,
Trevor L.
Website: http://tandcl.homemail.com.au


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 
I'm sure there's a reason, if you can give a url so we can see the source,
I'm sure a number of us would like to see.

--
Chris Leeds,
Microsoft MVP-FrontPage

ContentSeed: great tool for web masters,
a fantastic convenience for site owners.
http://contentseed.com/
 
Sorry, Chris

My website address is in my signature, so the file in question is
http://tandcl.homemail.com.au/picture.html

Since I posted, I experimented a bit more and changed this comment block
<!-- ================================================
Functions:
On external.js
--------------------
qsobj() Gets passed parameters
getPic() Loads specified picture
================================================ -->
to this:
<!-- ================================================
Functions:
On external.js
==============
qsobj() Gets passed parameters
getPic() Loads specified picture
================================================ -->

And it worked 8-)

I cannot comprehend why
Does Firefox regard a string of dashes somehow differently than IE :-?
 
Yes, it does. You cannot have double dashes within a legal HTML comment.
IE is ignoring that restriction. FF is not.
 
Back
Top