W3C home > Mailing lists > Public > www-validator@w3.org > December 1998

RE: Bug? Javasvript and the <p> tag

From: Brian Gilkison <gilkison@one.net>
Date: Tue, 15 Dec 1998 00:56:16 -0500
To: <www-validator@w3.org>
Cc: "Nathaniel Wylie Turner" <nturner@WPI.EDU>
Message-ID: <000001be27ef$a11186e0$0300000a@brian>
Unfortunately, the Validator IS still correct in this case,and it knows
exactly where the <P> tag starts AND ends. :)

The problem is actually being caused by the <NOSCRIPT>...</NOSCRIPT> tag,
and the way <NOSCRIPT> is defined in the HTML 4 spec.  It is my
understanding that a <NOSCRIPT>...</NOSCRIPT> definition qualifies as a
block-level element,
(http://www.w3.org/TR/REC-html40/interact/scripts.html#edef-NOSCRIPT) and
according to the HTML4 spec,

"The P element represents a paragraph. It cannot contain block-level
elements (including P itself)."
(http://www.w3.org/TR/REC-html40/struct/text.html#edef-P)

You have (rightly) closed the <P> with a </P>, but that <P> cannot contain
any block elements, which <NOSCRIPT> is.  You'll see the same effect if you
try to put a list (<OL>, <UL>, etc.) or a table inside the <P>...</P>
tags...


Brian Gilkison
gilkison@one.net

>-----Original Message-----
>From: www-validator-request@w3.org
>[mailto:www-validator-request@w3.org]On Behalf Of Nathaniel Wylie Turner
>Sent: Tuesday, December 15, 1998 12:36 AM
>To: www-validator@w3.org
>Subject: Bug? Javasvript and the <p> tag
>
>
>The following page (http://www.WPI.EDU/~nturner/photos/) does not
>validate, but I'm fairly certain it is valid HTML 4.0.  It seems that
>the validator sees JavaScript and forgets the beginning <p> tag.
>
>nate
>--
>
>Nathaniel Turner
>http://www.wpi.edu/~nturner/
>                                                       .
Received on Tuesday, 15 December 1998 01:03:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:13:51 GMT