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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Printing Error 3
Clearing Cache ? 4
Image Toolbar 2
JS not working in Forefox 8
Cross refernce to fucntions in another fraem 1
Centering images 13
FP doesn't open on last used Web 5
Timing Out of an animated GIF 4

Back
Top