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 UTC
This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:11 UTC