Closed
Bug 367371
Opened 18 years ago
Closed 18 years ago
A comment like <!-- komentarz1 -- komentarz2 --> bad work. For Opera & IE is good.
Categories
(Core :: DOM: HTML Parser, enhancement)
Tracking
()
RESOLVED
DUPLICATE
of bug 214476
People
(Reporter: medicom, Assigned: mrbkap)
Details
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)
Build Identifier: v.2.0.0.1
In this problem any string like -- | --- | -----... inside a comment extend it. First symbol --> do not close this comment.
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Updated•18 years ago
|
Assignee: nobody → mrbkap
Component: General → HTML: Parser
Product: Firefox → Core
QA Contact: general → parser
Version: unspecified → 1.8 Branch
Is this report saying that comments are weird? I agree! Without a test case though it is hard to say if there is a bug.
----
BTW: I found this, which explains comments --> http://www.howtocreate.co.uk/SGMLComments.html
what good ideas!
Follow best practices (open the declaration with <! and immediately put only one comment opening with -- and closing with --, and avoiding within the comment any hyphens, exclamations or angle brackets, and closing the declaration immediately with >). If you want a second comment, open a new declaration!
Comment 2•18 years ago
|
||
It's illegal syntax, see http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.4
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
•