Re: tidy and scripts

On Fri, 7 Sep 2001, Bjoern Hoehrmann wrote:

> * Jany Quintard wrote:
> >Here is an input (very simple):
> >.../...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
> ><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,
Well Bjoern, it did not with the browsers I use (I know, they are able to
use very dirty HTML).
But, I do not feel comfortable with the sequence
<\/script
><\/body
><\/html
>
which precedes the </script> end tag. Does HTML require this too ?
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

Received on Friday, 7 September 2001 05:50:14 UTC