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

tidy and scripts

From: Jany Quintard <jany.quintard@fr.ibm.com>
Date: Fri, 7 Sep 2001 10:21:24 +0200
To: html-tidy@w3.org
Message-ID: <OF3B6953BB.E94110CF-ONC1256ABF.0048E0B2@france.ibm.com>

Hi all.
I am using tidy to tidy up and pretty-print HTML files generated using
It has worked fine since months (years ?), but I have now to include some
scripts in my HTML, and I am getting problems.

Here is an input (very simple):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
>document.writeln ("</frameset></frameset></frameset>" ) ;
and the output (I run tidy with options -i -raw)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
    <meta name="generator" content="HTML Tidy, see www.w3.org">

<script type="text/javascript">
document.writeln ("<\/frameset><\/frameset><\/frameset>" ) ;

So, the <\/frameset> are not what I want. And the last tags are strangely
mangled and appear twice.  This seems to happen only with script. Did I
oversee an option ?
Note : I get the same result if I replace:
document.writeln ("<\/frameset><\/frameset><\/frameset>" ) ;

Does anyione have an idea?
TIA. Jany

Any views or opinions expressed are solely those of the author and do not
necessarily represent those of IBM.
Jany Quintard - IBM Paris Laboratory - Application & Integration Middleware
Received on Friday, 7 September 2001 04:20:26 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:50 UTC