• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1391
  • Last Modified:

HTML Comments in Firefox

Is there another delimiter for comments in HTML that only Firefox recognizes? It appears that a good chunk of my html is being read as a comment by firefox, but not by IE 7. I can't find any extra <!-- --> comment delmiters, so I'm wondering what else could be causing this misread by Firefox.
0
Messenger569
Asked:
Messenger569
  • 5
  • 3
1 Solution
 
b0lsc0ttCommented:
There aren't any tags unique to Firefox but the page does have some validation errors.  Serious ones according to validator.w3.org.

First change the line below.

<link rel="stylesheet" type="text/css" href="/sl/sl.css" media="screen, projection">

I removed the xhtml style closing tag.  Another change you should make is ...

<script type="text/javascript" src="/sl/csinc.js">
</script>

The language attribute is obsolete and type should be used instead.  How does that work?

If you still have a problem then try removing the doctype tag.

Let me know how this works or if you have a question.

bol
0
 
Messenger569Author Commented:
That definitely helps out, but take a look at the following page's source code when opening it in Firefox.

http://www.uwec.edu/sl/projectvariedopportunities.htm

It's commenting out a huge block of the initial code that doesn't have comment <!-- --> delimiters around it.
0
 
b0lsc0ttCommented:
Did you still need help with this or have a question?  I noticed you closed it and also the grade was a B.  I can certainly help more and it is nice to have a chance to earn the A. :)

Let me know if you still need help with this.  I actually had to guess on the page with the error and just used the domain you put in the "tags" area.  With specific details of the page and part that you are having an issue with I can certainly contribute and help more.  Otherwise I am a little curious to know why the B grade.

I'm glad I have been a able to help some so far with what you have provided.

bol
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Messenger569Author Commented:
I actually figured it out myself, after reviewing the code a bit. It turns out firefox enforces a little stricter rules about closing comment tags than IE7 does. I certainly appreciate the help. I should've included the correct page, which would've enabled you to help some more. I'm requesting to have the grade changed. Thanks!
0
 
b0lsc0ttCommented:
By the way, I looked at your other question too.  Why did you close that one?  I doesn't seem like the comment worked for you.

To help, since it seems like you are new here, there is some helpful info in the Help section of the site.  Let me hightlight 3 specific areas that will help for closing questions.

What are your choices - http://www.experts-exchange.com/help.jsp#hi67

How to grade - http://www.experts-exchange.com/help.jsp#hi73

Info on closing questions - http://www.experts-exchange.com/help.jsp#hs5

I hope this helps you.  I can tell you that you should be able to get A quality answers from experts here so I am a little puzzled by your first 2 questions.  I just want to make sure you are able to get all this site and its experts have to offer.  Let me know if you have a question about any of this.

bol
0
 
b0lsc0ttCommented:
Thanks for that last comment.  I'm glad the problem is taken care of.  Firefox isn't just stricter with stuff related to a comment tag.  It is more standards compliant so any invalid html will have the chance of causing an issue.  IE7 is suppose to be better than IE6 but I haven't used it enough to know how it compares to Firefox, which I know is very good.

Thanks for the extra effort to change the grade.  I appreciate it, especially since it is one of the main ways we see how helpful our comments were and their quality.  If you still need help in that other question then have it reopened and post a comment here.  I'll take a look at it and see if I can help.  I have lots of AJAX, script, etc experience so I can probably help.  As it is it seems pretty incomplete now.

bol
0
 
Messenger569Author Commented:
Thanks for all of the great information. It turns out the solution to the other question was correct, but just not in the proper location. I got that problem taken care of. The site is now running great with Firefox, but I'm sure I'll have some more questions soon.
0
 
b0lsc0ttCommented:
Good.  I'm glad both issues are working well and we (this site and experts) have been able to help.  Hopefully we will see you around more.  Enjoy the site!

bol
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now