Closed Bug 191661 Opened 22 years ago Closed 16 years ago

<! in comment tag <!-- >immediately after </head> truncated and no page display

Categories

(Tech Evangelism Graveyard :: German, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: DavidMolnar, Unassigned)

References

()

Details

(Whiteboard: [bug248549notfixed])

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2) Gecko/20021114 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2) Gecko/20021114 Description : In a comment tag '<!-- comment>' the part '<!' is truncated, resulting in '-- comment>', when this tag follows an '</head>' tag immediately. Visible when viewed in 'Page Source'. Observed only in HTML code defining framesets. Result after rendering Only '-- comment>' will be shown, then no more rendering, page remains otherwise blank. Example: http://www.gaukler-petronella.de/ HTML code on server is correct. Observed also in two other pages. These were already fixed by removing the comment. Checked with Internet Explorer 5, download and display of the page happens correctly. Example code of page mentioned above, how 'Page Source' shows it: --------8<-------------------------8<----------------------- <!doctype html public "-//IETF//DTD HTML 3.2//EN//"> <html> <head> <title>Petronella</title> <meta http-equiv="Reply-to" content="tim@schrock.net"> <meta http-equiv="expires" content="2"> <meta name="author" content="Tim Schrock"> <meta name="publisher" content=""> <meta name="copyright" content="ti-mwork"> <meta name="keywords" description=""> <meta name="Content-Language" content="de"> <meta name="revisit-after" content="2 month"> </head> -- designed by Tim Schrock in October 1999, updated 2000.03.04> <frameset rows="160,*" border=0> <frame src="http://schrock.net/petronella/top.htm" name="top" frameborder="no" border=0 framespace=0 scrolling="no" noresize> <frameset cols="70,*,70" border=0> <frame src="http://schrock.net/petronella/left.htm" name="left" frameborder="no" border=0 framespace=0> <frame src="http://schrock.net/petronella/main.htm" name="main" frameborder="no" border=0 framespace=0> <frame src="http://schrock.net/petronella/right.htm" name="right" frameborder="no" border=0 framespace=0> </frameset> </frameset> <noframes> <body> Diese Seite verwendet Frames - die beherrscht Ihr Browser jedoch nicht. Sie k&ouml;nnen das Angebot von Petronella jedoch teilweise betrachten, wenn Sie auf diesen Link <a href="http://schrock.net/petronella/main.htm">hier</a> klicken. </body> </noframes> </html> --------8<-------------------------8<----------------------- Greets, Dávid Molnár <mailto:DavidMolnar@web.de> Reproducible: Always Steps to Reproduce: 1. See details. 2. 3. Actual Results: See details. Expected Results: Correct download and rendering of the frameset.
'<!-- comment>' is not a valid comment. It's an unclosed comment in standards mode. This page is in standards mode, because the doctype is unknown (a correct IETF 3.2 doctype has no "//" after the "EN"). So the problem here is that most of the page content is simply commented out.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
Summary: <! in comment tag <!-- >immediately after </head> truncated and no page display → <! in comment tag <!-- >immediately after </head> truncated and no page display
I can't accept your explanation, because the mentioned parts are also missing in the shown source code, which should also show commented out and errorneous parts of the code. If I save the page mentioned before, it gets even more truncated (the following is the page, how it is saved on my harddisk) ------8<-----------8<-------- <!DOCTYPE doctype PUBLIC "-//IETF//DTD HTML 3.2//EN//"><html><head><title>Petronella</title> <meta http-equiv="Reply-to" content="tim@schrock.net"> <meta http-equiv="expires" content="2"> <meta name="author" content="Tim Schrock"> <meta name="publisher" content=""> <meta name="copyright" content="ti-mwork"> <meta name="keywords" description=""> <meta name="Content-Language" content="de"> <meta name="revisit-after" content="2 month"><!----></head> <body>-- designed by Tim Schrock in October 1999, updated 2000.03.04&gt; <noframes> <body> Diese Seite verwendet Frames - die beherrscht Ihr Browser jedoch nicht. Sie k&ouml;nnen das Angebot von Petronella jedoch teilweise betrachten, wenn Sie auf diesen Link <a href="http://schrock.net/petronella/main.htm">hier</a> klicken. </body> </noframes> </body></html> -------------------8<--------------------8<----------
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
> are also missing in the shown source code That's a bug in view-source. But when you're saving, you're doing "save page complete" which saves the _parsed_ page.... and we seem to be dropping stuff there from the comment. Over to heikki.
Assignee: jst → harishd
Status: UNCONFIRMED → NEW
Component: DOM HTML → Parser
Ever confirmed: true
OS: Windows 2000 → All
QA Contact: stummala → moied
Hardware: PC → All
You mention, that when saving, some of the comments are dropped because of the previous parsing. I must say, I have seen this effect for the very first time. Which comments will be dropped and which will be not?
We should not be dropping any (from the DOM). If we are, it's a tokenizer bug (which is why I reassigned it to parser).
Target Milestone: --- → Future
Depends on: 144902
this is a small example showing the problem. I will call it test1.htm <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//DE"> <HTML> <HEAD> <TITLE>Ungleichungen</TITLE> <META NAME="description" CONTENT="Ungleichungen"> </head> <body> <!-- ------------------------------ --> <!-- ----- Beginn der Seite: Kopfleiste ------------------------ --> Test<br> Test<br> <!-- ----- Ende Kopfleiste ------------------------------------- --> <H3><A NAME="SECTION00041110000000000000"> Ungleichungen</A> </H3> <BR> <!-- ----- Start Fussleiste --------------- --> <P>&nbsp;</P> <!-- ----- Ende Fussleiste --------------- --> </body> </html> changing the html code with perl -pi -e 's/<!-/<! -/' test1.htm or perl -pi -e 's/<!-/<!_/' repairs this. It looks like a parsing problem for <!-
That testcase has nothing to do with this bug. In fact, the behavior you are seeing is correct. See bug 101600.
Both comment #0 and comment #6 exhibit the same thing. They are both rendered in standards mode because the invalid public identifiers in the doctypes are unrecognized at the moment (see bug 101600). The comments are parsed correctly with the exception of "<!" being missing at the beginning of a comment. Therefore, the only problem that this bug actually shows is bug 144902. This is could be a duplicate of bug 144902, invalid, or possibly an evangelism bug (for http://www.gaukler-petronella.de/ and/or any other sites the reporter has problems with). Reporter, if you have any questions about this, feel free to email me. If this is just going to be left as a dependency on 144902, can someone add the testcase keyword to get this off the BugAThon searches?
Over to evang.
Assignee: harishd → german
Component: Parser → German
Product: Browser → Tech Evangelism
QA Contact: moied → german
Target Milestone: Future → ---
Version: Trunk → unspecified
[bug248549fixed]
[bug248549notfixed] Sorry previous comment is due to an error during copy/paste :)
Whiteboard: [bug248549notfixed]
404
Status: NEW → RESOLVED
Closed: 22 years ago16 years ago
Resolution: --- → FIXED
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.