Closed Bug 361731 Opened 18 years ago Closed 18 years ago

Parsing error: -- in a comment

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 235628

People

(Reporter: apletyak, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; hu; rv:1.8.1) Gecko/20061010 Firefox/2.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; hu; rv:1.8.1) Gecko/20061010 Firefox/2.0

The comment-end tag is wrongly recognized when there is a -- inside a comment. This happened on a mantis bug tracker phtml page (contains php and html codes as well)

With the following php code excerpt you can reproduce the error:
<-- the following part is deleted
<td> <?php
      # some message here
      function_call();
  ?> </td>
-- delete ends here -->


All parts after this are taken as comment, until the next comment-end tag (-->), 
and in the browser it looks strange (table lines are missing).

Reproducible: Always

Steps to Reproduce:
1. see above
2.
3.

Actual Results:  
see above

Expected Results:  
see above
According to the html spec -- inside a comment is illegal.

*** This bug has been marked as a duplicate of 235628 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.