[pmwiki-devel] <dd> in the middle of <ul>?

Patrick R. Michaud pmichaud at pobox.com
Tue May 17 01:19:39 CDT 2011


On Tue, May 17, 2011 at 06:50:22AM +0200, Peter Bowers wrote:
> [...]
> when I expected this HTML:
> 
> <ul><li>LEVEL 1
> <ul><ul><li>LEVEL 3
> </li></ul></ul></li></ul>
> 
> Is this intentional?  Or is it a bug?

It's intentional.  The second line of what you expected is not valid
HTML or XHTML -- a <ul> block is only allowed to contain <li> elements.
(The "<ul><ul>" sequence is is invalid.)  Fixing things to use <ul>
would therefore result in an extra layer of bullets in the output,
or we have to do weird things with style= or class= attributes to
avoid them.

The "***" markup simply means "unordered list at third level", it 
doesn't mean that the lists at the first and second levels must
also be unordered lists.

Pm



More information about the pmwiki-devel mailing list