Closed
Bug 266044
Opened 20 years ago
Closed 20 years ago
Inline comment in HTML title is displayed as normal text
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: jiafu_gao, Assigned: bugzilla)
References
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a5) Gecko/20041025 Firefox/0.9.1+ Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a5) Gecko/20041025 Firefox/0.9.1+ The following simple html shows the problem. Not sure what the html standard says about this, but IE displays it without problem (i.e., comments are correctly recognized, and skipped). <html><head> <title>eValuator - <!-- <div class="docstyle">include = clnyy_Benefit_Plans_Hdr <br><br></div> --> Your eValuator™ Home Page <!-- <div class="docstyle"><br><br>include-end<br><br></div> --> </title> <body> XXX </body> </html> Reproducible: Always Steps to Reproduce: 1. Save the sample html into a file 2. Open the file in Firefox 3. Check the Window title in firefox Actual Results: you should see: sth like <!-- comment --> in the Window title in firefox. Expected Results: Skip the comments
Comment 1•20 years ago
|
||
Titles cannot contain comments or other markup. http://www.w3.org/TR/html401/struct/global.html#edef-TITLE
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Comment 2•20 years ago
|
||
*** Bug 266045 has been marked as a duplicate of this bug. ***
*** Bug 295308 has been marked as a duplicate of this bug. ***
I'm not so familiar with DTD but with BNF and I can't find any definition that allows BODY to have comments in either. Maybe I'm wrong.
You need to log in
before you can comment on or make changes to this bug.
Description
•