Re: Possible bug in validator: noscript

--- Will Woodhull mumbled on 2002-05-10 00.53.30 -0700 ---
> I've joined because I believe there may be a bug in the W3C HTML validator:
> when I use a <noscript>...</noscript> construction in the head of a
> document, I get a cascade of errors on all meta tags and link tags that
> follow it-- these are all reported as not being in the right place.
> Additionally, the </head> tag generates the same error! the pages validate
> perfectly when it is removed.
> 
> I've put up a short web page that demonstrates this, and also shows the
> utility of <noscript> and why I would like to see the problem addressed
> asap:
> 
>       http://bbd.thornhenge.net/test401trans.html

So, the actual problem on this page is summed up by the first error returned:

  Line 14, column 60:
         <meta http-equiv="refresh" content="0;URL=alternate.html">
                                                                  ^
    Error: element "META" not allowed here; check which elements this element
    may be contained within

A quick check of the DTD shows that NOSCRIPT may only take %flow elements,
which do not include META. So, the problem is that you have a META inside a
NOSCRIPT. At least, that's the problem on the example page.

-- 
Mike Burns <netgeek@speakeasy.net> <http://netgeek.ws>
"Since we have to speak well of the dead, let's knock them while they're
alive."  - John Sloan

Received on Friday, 10 May 2002 07:05:53 UTC