Closed Bug 297218 Opened 20 years ago Closed 20 years ago

comments within a comment declaration incorrectly displayed to user

Categories

(Core :: DOM: HTML Parser, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 233270

People

(Reporter: johnish, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050609
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050609

In a page on our Intranet a comment declaration  caused viewing of the comment
or nothing at all.  Any comment that has more then 3 hyphens on the starting
declaration and a different number of hypens on the closing declaration will
cause undesirable output.

Reproducible: Always

Steps to Reproduce:
1. create normal html file
2. include a comment like <!----  this is a comment -->
3. view page, results are undesirable.

Actual Results:  
Page displays part of comment and skips part of the page until it some how ends
the 'comment'

Expected Results:  
Should have commented out the line ending when --> was reached.

example code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!--- LANCO INTRANET HEADER --->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>::Product Information</title>
<link href="/crm/css/default.css" rel="stylesheet" type="text/css">
</head>
<body onLoad="placeFocus1st();"><!--- //LANCO INTRANET HEADER --->

<table width="745" cellspacing="0" cellpadding="0" border="0" height="80%">
<tr>
<td valign="top">&nbsp;
<!-- --  John   - -->
OK thanks man
<!-- Mozilla rocks --> 
</td>
</tr>
</table>
</BODY>
</HTML>
Possibly a dupe of bug 233270 -> Invalid?

John does bug 233270 look the same as your problem?
Assignee: nobody → parser
Component: Layout → HTML: Parser
QA Contact: layout → mrbkap

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