PDA

View Full Version : <noscript> doesn't validate?


Skyzyx
10-08-2003, 07:27 PM
I just got this message while trying to re-validate one of my client's pages:

http://validator.w3.org:8001/check?uri=http%3A%2F%2Fwww.goldenruleproduce.com%2Fmorningsun%2F&charset=%28detect+automatically%29&doctype=%28detect+automatically%29&verbose=1&fussy=1

Has anyone got an idea what's going on here? It's claiming that <noscript> isn't valid XHTML 1.0 Transitional...

Catman
10-08-2003, 07:31 PM
It's probably because <noscript> cannot be inside a <p> element. Note also that you'll need to enclose the text inside the <noscript> element in some kind of block element.

cg9com
10-09-2003, 05:52 AM
Use it inside of a script definition.

Moving to HTML/CSS ...

liorean
10-12-2003, 08:53 PM
No, don't. Use it in almost any place you can use a div, and be sure to wrap the contents in a block element. Don't use it in a script element, however, since script element doesn't allow element children. (only text)