[thelist] noscript tag does not validate in W3C Validator

Gerry Quach gerry at webcandy.biz
Tue Nov 26 18:25:01 CST 2002


>From: "Saila, Craig" <Craig.Saila at bgminteractive.com>
> > -----Original Message-----
> > From: Gerry Quach [mailto:indiechild at 44sunsets.org]
> > Sent: November 26, 2002 7:21 AM
> > for some reason I can't get a noscript block to validate in
> > my pages... I didn't have this problem before (a few days
>This seems to be a bug that's fixed as both now validate for me.

yep sorry about that, I should've posted the fix but I didn't think my
original message would get through as I accidentally posted using an email
address that I didn't sign up with.

anyway, the problem was that I was using the <.noscript> tag inside a <.p>
block... which apparently isn't allowable under XHTML 1.0, hence the
cryptic error message :( I'm not sure why that is, and it doesn't make much
sense to me!

an interesting tidbit is that I could've sworn the same incorrect HTML code
validated a few days ago, so I assume that there was a bug in the W3C
Validator that they fixed very recently.

In any case, the fix was to use a <.div> instead of a <.p> for the
particular paragraph in question, which works quite nicely as a <.noscript>
block can be used inside a <.div>. Of course it's probably not semantically
correct, but it's probably the simplest solution for this problem.

--
gerry





More information about the thelist mailing list