Re: Formatting ASP.NET code

* Tommi wrote:
>About the other problem I was having: I have a page with <asp:> tag 
>inside the head and title part of the page:
>
><title><asp:literal ...
>
>When I tidy this, it is moved into the body part and the head part is 
>left with and empty <title></title>. Any idea why this happends?

Well, the <title> element in HTML 4 and later only allows text, so that 

  <title><asp:literal ...

is certainly an error, you either mean

  <title>&lt;asp:literal ...

or

  <title></title><asp:literal ...

Tidy is designed to process (possibly illegal) HTML/XHTML/XML documents,
so it does not know much better than that...

Received on Thursday, 15 July 2004 07:14:13 UTC