Re: Tidy's handling of <noscript>

On Sat, 18 Aug 2001, Paul wrote:

> Hi All,
> 
> I cannot tell if it is me or tidy who is doing the wrong thing.
> 
> My HTML contains a sequence like this:
> 
> <html>
> <head>
> 
> <script>
> <!--
>   some script statements here
> // stop hiding -->
> </script>
> 
> <noscript>
> show this stuff when scripting not enabled
> </noscript>
> 
> </head>
> 
> <body> ....
> 
> Tidy's output moves the <noscript> block to within <body>;
> specifically as the very first thing after <body>.


The W3C HTML specs don't permit noscript in the HEAD, so Tidy
moves it to the BODY.

Regards,

-- Dave Raggett <dsr@w3.org> or <dave.raggett@openwave.com>
W3C Visiting Fellow, see http://www.w3.org/People/Raggett 
tel/fax: +44 122 578 3011 (or 2521) +44 771 213 7629 (mobile)

Received on Monday, 20 August 2001 05:26:38 UTC