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

Re: Formatting ASP.NET code

From: Tommi <tommiweb1@q1b.com>
Date: Thu, 15 Jul 2004 14:08:36 +0200
Message-ID: <40F673C4.5010608@q1b.com>
To: Bjoern Hoehrmann <derhoermi@gmx.net>
Cc: html-tidy@w3.org

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

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:15:54 UTC