W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2004

Re: [Tidy-dev] parsing of script's

From: Klaus Johannes Rusch <KlausRusch@atmedia.net>
Date: Sun, 27 Jun 2004 10:17:41 +0000
Message-ID: <40DE9EC5.4040805@atmedia.net>
To: André <andre1@tiscali.no>
Cc: tidy-develop@lists.sourceforge.net, html-tidy@w3.org

André wrote:

>1. need to add an option to not change script contenet at all, cause its
>some times messes upp the script totally.
>  
>
Can you provide an example where tidy should not touch script content? 
It should only change script content where needed for standards 
compliance and in a non-desstructive way so an example of where this 
does not work correctly would be helpful.

>2. This is also usefull for Asp.Net files, but you should make tidy aware of
>the runat="server" attribute.
>  
>
Great idea, for server-side scripting we may want to consider not 
parsing the content at all since it will be replaced by the server 
anyway and not be part of the final document. Would you mind raising 
this feature request in the tidy tracker at http://tidy.sf.net?

One caveat: tidy attempts to correct the document structure 
independently of the server-side processing, so something like

<table>
<script runat="server" type="text/vbscript">
Response.Write(tablecontent$)
Response.Write("</table>")
</script>

will not be processed as desired since tidy will add the </table> 
element, which is also generated by the script then.

>3. an option to set how many spacings or/and tabs to use for source
>formating
>  
>
tidy --indent-spaces n should do this already.

-- 
Klaus Johannes Rusch
KlausRusch@atmedia.net
http://www.atmedia.net/KlausRusch/
Received on Sunday, 27 June 2004 06:17:45 GMT

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