Re: Formatting ASP.NET code

I actually mean <title><asp:literal ... format like you described.

The difference is that the above code is not off course sent to the end 
user (browser), because the <asp: tags are processed on server side.

But, I'm now talking of integrating HTML Tidy with VS.NET during 
development, or integrating Tidy with other developement 
environments/languages that use proprietary/custom tags in code that are 
processed on the server side.

This is why we would need to have some sort of wildcard matching 
new-script-tags option or similar.

Bjoern Hoehrmann wrote, On 15.07.2004 13:12:

> * 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 08:08:31 UTC