W3C home > Mailing lists > Public > www-validator@w3.org > April 2000

Re: Lists (OL) inside of PRE

From: Rich Fields <fields@slr.orl.lmco.com>
Date: Wed, 12 Apr 2000 09:52:57 -0400 (EDT)
To: www-validator@w3.org
Message-id: <38F47F4B.2AB3B970@slr.orl.lmco.com>
> > My reading of HTML4 standard indicates that use of <OL> as a
> > list within a <PRE> block is acceptable.  Am I misunderstanding
> > something?  I'm reading the summary at
> >
> > http://www.w3.org/TR/html401/struct/text.html#h-9.3.4
> >
> > and from this I'm assuming that only the following entities
> > are excluded from PRE: IMG|OBJECT|BIG|SMALL|SUB|SUP
> The only elements allowed inside a PRE are inline elements other than IMG,
> OBJECT, BIG, SMALL, SUB and SUP. OL is a block element, hence not
> permitted.
> It is difficult to see how an OL element could be inside a PRE element,
> since the indentation, numbering style, etc. cannot be known in advance.
> Tim Bagot

I see your point, and I now see how I was misinterpreting the
spec, but interestingly enough, both NS and IE render this,
as well as many other block elements within PRE.  Thanks.

Received on Wednesday, 12 April 2000 15:31:01 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:27 UTC