Re: HTML comments and SSI

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 UTC