Closed Bug 530451 Opened 15 years ago Closed 15 years ago

Lines in html which starts with <!-- and end with --> doesn't work correctly

Categories

(Firefox :: General, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 214476

People

(Reporter: middle_of_nowere, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; nl; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; nl; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5

Some websites use lines like 
<!--------------------------------------------------------------------------------------->
to indicate inside the html-code a new section is started.
<!-- is to indicate that a comment begins and the --> is to indicate that the commend ends.
Firefox doesn't display the rest of the website.

Reproducible: Always

Steps to Reproduce:
Use the following html-code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
  <title>Test</title>
</head>
<body>
	Line1<br />
	<!--------------------------------------------------------------------------------------->     
	Line2<br />
	<!--------------------------------------------------------------------------------------->     
	Line3<br />	
</body>
</html>
Actual Results:  
Website shows:
Line1
Line3

Expected Results:  
Website should show like:
Line1
Line2
Line3

When I press Ctrl+A, the text "Line2" is also copied. It looks that the text is invisible.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
Make sure your hyphens come in multiples of four
http://htmlhelp.com/reference/wilbur/misc/comment.html
You need to log in before you can comment on or make changes to this bug.