The Dom/Defs XHTML::EMPTY_TAGS and XHTML_BOOLEAN_ATTRIBUTES lists need to be updated for HTML5.
The full list of empty content model elements in HTML5 is:
base
link
meta
hr
br
wbr
img
embed
param
source
track
area
colgroup /* only if the span attribute is present */
col
input
keygen
command
PHPTAL already has special handling for these elements in XHTML output mode, so I think we should just update the list sans colgroup, which will need special handling.
The current attribute list also includes some obsoleted (in HTML5) attributes, but I think these might as well stay for compatibility and can be removed in another version.
The
Dom/Defs XHTML::EMPTY_TAGS
andXHTML_BOOLEAN_ATTRIBUTES
lists need to be updated for HTML5.The full list of empty content model elements in HTML5 is:
PHPTAL already has special handling for these elements in XHTML output mode, so I think we should just update the list sans
colgroup
, which will need special handling.As for the boolean attributes list:
The current attribute list also includes some obsoleted (in HTML5) attributes, but I think these might as well stay for compatibility and can be removed in another version.