Closed
Bug 52931
Opened 24 years ago
Closed 23 years ago
Space between '--' and '>' breaks comments
Categories
(Core :: DOM: HTML Parser, defect, P3)
Core
DOM: HTML Parser
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: h.b.furuseth, Assigned: c)
References
()
Details
(Keywords: qawanted, testcase, Whiteboard: recc WONTFIX)
Attachments
(1 file)
120 bytes,
text/html
|
Details |
From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; SunOS 5.7 sun4u; en-US; m18) Gecko/20000911 BuildID: 2000091109 '-- >' does not terminate a comment, unless there is space before the comment start as well or this is the last comment in the file. Reproducible: Always Steps to Reproduce: 1. Try the URL above. Actual Results: "a,d" Expected Results: "a,c,d"
Comment 1•24 years ago
|
||
I'm suspecting this is bugward compatibility... Let me run some tests.
Comment 2•24 years ago
|
||
http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.4 ``White space is not permitted between the markup declaration open delimiter("<!") and the comment open delimiter ("--"), but is permitted between the comment close delimiter ("--") and the markup declaration close delimiter (">").'' However, I suspect lots of people thought it was nice to make comments like: <!-- bla bla bla -- look at the neat comment -- isn't this nice? --> Or perhaps: <!-- keyword -- description --> So, to not break those pages, Mozilla is kinda forced to do what it currently does: ignore anything but -->. However, I understand that this has been "fixed" in xml, of which xhtml is part. rickg: wontfix?
Reporter | ||
Comment 3•24 years ago
|
||
Ugh. Well, maybe you could check for '--[ \t\r\n\f]*>' instead of '-->'. That would support both your example and this: <!-- bla bla bla -- -- look at the neat comment -- -- isn't this nice? -- >
Comment 4•24 years ago
|
||
ns4.5 displays a,d (not surprisingly) I'd mark it severity: minor, and future it. It is an fairly easy fix, via the proposed method, but it's hardly important. IMHO
Comment 5•24 years ago
|
||
This is probably a compatability mode only thing. I'm pretty sure we do the right thing in strict mode. Could someone (jag?) check? Since you've already got the test cases made.......
can we make a decission (wontfix or willfix) by mozilla1.0? thanks. marking all/all
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: mozilla1.0,
testcase
OS: Solaris → All
Hardware: Sun → All
Updated•24 years ago
|
Keywords: qawanted
Whiteboard: need to determine if this is quirks-mode only or also in standard mode; recc WONTFIX if its the former
Assignee | ||
Comment 9•23 years ago
|
||
This is quirks mode only, but view-source has wrong syntax highlighting in standards mode. I'll file a separate bug for that.
Whiteboard: need to determine if this is quirks-mode only or also in standard mode; recc WONTFIX if its the former → recc WONTFIX
Assignee | ||
Comment 10•23 years ago
|
||
Comment 11•23 years ago
|
||
Clarence, it looks like your patch in bug 57724 fixes this. I'm sending this to you so it doesn't rot in rickg's list...
Assignee: rickg → c
Assignee | ||
Comment 12•23 years ago
|
||
No, it will only fix the view-source part. Behavior for "-- >" will stay as it is now: closes a comment in standards mode, but doesn't close it in quirks mode. WONTFIX is recommended for almost a year now and nobody has contradicted. => resolving WONTFIX.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•