W3C home > Mailing lists > Public > www-validator@w3.org > May 2002

Re: Possible bug in validator: noscript

From: Mike Burns <netgeek@speakeasy.net>
Date: Fri, 10 May 2002 07:05:15 -0400
To: www-validator@w3.org
Message-ID: <20020510070515.A32599@dominatrix.dextra>
--- 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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:27 UTC