W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2000

Re: HTML comments and SSI

From: Richard A. O'Keefe <ok@atlas.otago.ac.nz>
Date: Thu, 14 Sep 2000 13:48:06 +1200 (NZST)
Message-Id: <200009140148.NAA18210@atlas.otago.ac.nz>
To: html-tidy@w3.org, saexpress@netscape.net
Chris Matson wrote:
	Pretty layout problem
	
	    <!-- comment goes here -->
	    <!--#include file="footer.inc" -->
	    <!-- another comment goes here -->
	
	when TIDY'd (? sp.) looks like this
	
	    <!-- comment goes here --><!--#include file="footer.inc" --><!-- another
	comment goes here -->
	
Certainly a problem, because the two have different content.
Put this in an element:
<PRE>
<!-- comment goes here -->
<!--#include file="footer.inc" -->
<!-- another comment goes here -->
</PRE>
This has content
'\n' '<!--#include file="footer.inc" -->' '\n'
in HTML, or
'\n\n' '<!--#include file="footer.inc" -->' '\n\n'
in XHTML.  The flattened form loses some of the newlines.
Does Tidy always do this, or only in elements where spaces are
squished (<P> and the like)?
Received on Wednesday, 13 September 2000 21:48:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:44 GMT