tags:

views:

41

answers:

2

I have an issue in firefox and not in IE, didn't think I'd hear myself say that one, where if I have an commented section in my html like so:

<!--------------form--------------->
<div id='form'>
etc etc.
</div>

<!------------main content----------------->

The area in between the two comment tags is being completely struck out. What am I doing wrong?

+5  A: 

Remove the dashes inside the comments, it will work then. I’ve forgotten the exact rule but basically double dashes inside comments are not allowed and cause problems.

<!-- form -->
<div id='form'>
etc etc.
</div>

<!-- main content -->

Read the relevant section in the standard.

tl;dr: Firefox is right, MSIE is broken.

Konrad Rudolph
+1  A: 

Try removing the extra -s. (ie, keep <!-- and -->, but change the rest to spaces or something.)

Lucas Jones