Don't emit errors for void elements.

This commit is contained in:
Michael[tm] Smith 2012-02-16 11:39:54 +09:00
parent 73834b8412
commit 4ad0d1f2f7

View file

@ -1830,7 +1830,7 @@ void TY_(ParseEmpty)(TidyDocImpl* doc, Node *element, GetTokenMode mode)
{
if ( !(node->type == EndTag && node->tag == element->tag) )
{
TY_(ReportError)(doc, element, node, ELEMENT_NOT_EMPTY);
/* TY_(ReportError)(doc, element, node, ELEMENT_NOT_EMPTY); */
TY_(UngetToken)( doc );
}
else