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

Re: Vaidator Issue

From: Thanasis Kinias <tkinias@optimalco.com>
Date: Wed, 21 Aug 2002 21:29:57 -0700
To: Brenda Make <brendieellen@yahoo.com>
Cc: www-validator@w3.org
Message-ID: <20020822042956.GA6322@optimalco.com>

scripsit Brenda Make:
 
>    <p>Please try these things:
>        <ul class="list_bulleted">
>            <li>Thing one;</li>
>            <li>Thing two;</li>
>            <li>Thing three;</li>
>         </ul>
>     ...before mailing me with your problem.</p>

While the argument might be made that this makes sense, as Liam said
that's an issue to take up with the folks who write the standards.  The
Validator just checks against those standards.

What happens in your example in HTML is that the <ul> implicitly forces
closed the <p>.  Then the text after the </ul> is `naked' (i.e., a
direct child of <body> or whatever the <p>'s parent was), and stray </p>
would be an error.  In XHTML, of course, elements can't be implicitly
closed, so the <ul> is itself an error.

If you want the visual appearance of the <ul> being a part of the <p>,
try using CSS to close up the vertical margins between the <ul> and the
preceding and following <p> elements.

-- 
Thanasis Kinias
Doctoral Student, Department of History
Arizona State University
Tempe, Arizona, U.S.A.

Ash nazg durbatulūk, ash nazg gimbatul,
Ash nazg thrakatulūk agh burzum-ishi krimpatul
Received on Thursday, 22 August 2002 00:30:30 GMT

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