Closed
Bug 387165
Opened 18 years ago
Closed 18 years ago
Comment with extra dashes <!---- ----> displaying in page content
Categories
(Core :: DOM: HTML Parser, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 214476
People
(Reporter: brad, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
With the following code (inserpt from our source code) the first document tag prints to browser as viewable page content. The second one does not. Have tried 2 versions, 1 as is, and the other formatted with <!-- ---...
<td valign="top" class="hotlinks_style">
<!---- HOT LINKS section start ----------------------------------------------->
<?php ... ?>
<!----- HOT LINKS section end ------------------------------------------------->
</td>
Reproducible: Sometimes
Steps to Reproduce:
1. Insert the code provided in the details section
2.
3.
Actual Results:
<!---- HOT LINKS section start ----------------------------------------------->
displays on the web page
Expected Results:
Shouldn't have displayed
The site with this bug had to be updated to clean up the UI, so I can not provide the link. I have posted a copy of the file to http://dev.osmnetworks.net/brad/ffTags.html
Comment 1•18 years ago
|
||
The source of that page contains this fragment (which is not an HTML comment):
<!---- HOT LINKS section start
----------------------------------------------->
so it's expected that you see this text in the HTML output.
See also bug 322937 and bug 102127 comment 16 on why you should not use "--" inside HTML comment sections in general.
Updated•18 years ago
|
Component: General → HTML: Parser
Product: Firefox → Core
QA Contact: general → parser
Summary: HTML Documentation <!-- --> displaying in page content → Comment with extra dashes <!---- ----> displaying in page content
Updated•18 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•