[pmwiki-users] non conformant XHTML 1.x tags

Patrick R. Michaud pmichaud at pobox.com
Fri Jan 4 11:12:54 CST 2008


On Fri, Jan 04, 2008 at 10:13:31AM +0100, Jean DEMARTINI wrote:
> The (X)HTML text generated by PmWiki (or some cookbook recipes) is
> populated by non conformant XHTML tags.
> 
> For example:
> 
> each <h1></h1> pair of tags is systematically preceded by
> <p class='vspace'> instead of <p class='vspace' />

You must be using a somewhat old version of PmWiki, and it must
be a recipe on your site that is causing this.  

First, PmWiki now uses <div class='vspace'></div> by default.
Even when it used to use paragraph elements for vspaces, it
would be sure to generate the closing </p> tag.

Also, it's not systematically added to every heading --
only those headings that have blank lines in front of them
will get a <div class='vspace'></div> in front of them
(and it really has nothing to do with the heading markup).

As usual, take a look at the XHTML output on pmwiki.org
to see what PmWiki tends to produce by default.

Hope this helps,

Pm



More information about the pmwiki-users mailing list