After squinting very hard while reading the following docs:
+ 2.3 - Extra HTML specifications using the $spec parameter
+ 3.4.6 - Transformation of deprecated attributes
+ 3.3.2 - Tag-transformation for better compliance with standards
+ HTML5 - Deprecated Tags & Attributes
I've come up with the following $spec to compliment the $config. A sort of venn diagram join between XTHML + HTML5.
$config = array(
'valid_xhtml' => 1,
'no_deprecated_attr' => 2,
'make_tag_strict' => 2,
);
$spec = '';
$spec .= 'a=,-charset,-coords,-rev,-shape;';
$spec .= 'area=-nohref;';
$spec .= 'col=-align,-char,-charoff,-valign,-width;';
$spec .= 'colgroup=-align,-char,-charoff,-valign,-width;';
$spec .= 'div=-align;';
$spec .= 'iframe=-align,-frameborder,-longdesc,-marginheight,-marginwidth,-scrolling;';
$spec .= 'img=-longdesc;';
$spec .= 'li=-type;';
$spec .= 'link=-charset,-rev,-target;';
$spec .= 'menu=-compact;';
$spec .= 'object=-archive,-classid,-codebase,-codetype,-declare,-standby;';
$spec .= 'ol=-type;';
$spec .= 'param=-type,-valuetype;';
$spec .= 't=-abbr,-axis;';
$spec .= 'table=-border,-cellspacing,-cellpadding,-frame,-rules,-width;';
$spec .= 'tbody=-align,-char,-charoff,-valign;';
$spec .= 'td=-axis,-abbr,-align,-char,-charoff,-scope,-valign;';
$spec .= 'tfoot=-align,-char,-charoff,-valign;';
$spec .= 'th=-align,-char,-charoff,-valign;';
$spec .= 'thead=-align,-char,-charoff,-valign;';
$spec .= 'tr=-align,-char,-charoff,-valign;';
$spec .= 'ul=-type;';
$html = htmLawed( $html, $config, $spec );
Hope this helps someone.