XHTMLStrict
Description
How to get XHTML 1.0 Strict output
PmWiki tries to produce HTML output validating the standard "XHTML 1.0 Transitional". This page collects tips on how to produce output that would validate a different standard, "XHTML 1.0 Strict".
Tables
No more allowed table attributes: bordercolor, bgcolor, align (for the whole table). Use CSS styles instead.
Alignment of cell content is allowed.
Lists
%item value=x% is no more allowed. There seems to be no XHTML 1.0 Strict compatible method to set an item number in an OL.
[[<<]]
[[<<]] is suggested in the Images documentation to clear floats. PmWiki 2.2.26 generates "<br clear='all' />". Pm suggests
Markup('[[<<]]', 'inline', '/\\[\\[<<\\]\\]/', "<br style='clear: both' />");
as a replacement.
An alternative to [[<<]] is "%p clear=left% ". Note the blank after the %, there has to be some character, e.g. blank or .
You need an entry
$WikiStyleCSS[] = 'clear';
in config.php to enable the 'clear' attribute.
Mini
Mini uses the "border" tag for images. Remove it with
$Mini['ImgFmt'] = '<img class="mini" src="%1$s" title="%2$s" alt="%2$s" />';
Notes
See also
W3C Deprecated elements and attributes:
Contributors
Comments
See discussion at XHTMLStrict-Talk?