Closed Bug 576990 Opened 14 years ago Closed 14 years ago

Comments not working

Categories

(Firefox :: General, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 214476

People

(Reporter: soulreava, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6

I have the following code 

<div class='content_block'>
	<h1>{$lang['view_category']}</h1>
	<div class='groupbox'>{$c['name']}</div>
	{if $articles}
	{foreach $articles $a}
	<div class='subbox'><a href='{$td_url}/index.php?act=article&amp;code=view&amp;id={$a['id']}'>{$a['name']}</a><!--<span class='date'> -- {$a['date']}</span>--></div>
	<div class='row{$a['class']}-mini' style="font-weight: normal"><a href='{$td_url}/index.php?act=article&amp;code=view&amp;id={$a['id']}'>{$a['description']}</a></div>
	{/foreach}
	{else}
	<div class='option1'>{$lang['no_articles']}</div>
	{/if}
</div>

The comments section before the span tag doesnt work and shows me a --> in the browser. This does not happen in IE or Safari only happens in firefox. Even my development tool shows the area as commented out, but firefox shows a --> in on the page.

Reproducible: Always
Don't use more than 2 hypens inside a comment - due to the SGML rules, this can
create unexpected results.

http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.4
https://bugzilla.mozilla.org/show_bug.cgi?id=214476#c4

It will be fixed in Firefox 4.0, which uses the HTML5 parser, not the HTML4
one.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.