Re: tidy and scripts

* Jany Quintard wrote:
>Here is an input (very simple):
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
><html
>><head
>><title
>>Titre</title
>></head
>><body
>><script
>>document.writeln ("</frameset></frameset></frameset>" ) ;
></script
>></body
>></html
>>
>and the output (I run tidy with options -i -raw)

Current Tidy (see http://tidy.sf.net/) returns

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">

<html>
  <head>
    <meta name="generator" content="HTML Tidy, see www.w3.org">

    <title>Titre</title>
  </head>

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

>So, the <\/frameset> are not what I want.

But what HTML requires; this shouldn't cause any problems, while your
invalid HTML does.

regards,
-- 
Björn Höhrmann { mailto:bjoern@hoehrmann.de } http://www.bjoernsworld.de
am Badedeich 7 } Telefon: +49(0)4667/981028 { http://bjoern.hoehrmann.de
25899 Dagebüll { PGP Pub. KeyID: 0xA4357E78 } http://www.learn.to/quote/

Received on Friday, 7 September 2001 05:21:25 UTC