Revert "Fix for head closing tag not reported (#327)"
This reverts commit 61cfcb1555
.
This added an inconsistent warning about a missing optional close tag. In
general tidy does not report such optional close tags. See issue #327 for
some discussion on this.
This commit is contained in:
parent
121fe86bc6
commit
9caecb80cf
|
@ -3759,10 +3759,6 @@ void TY_(ParseHead)(TidyDocImpl* doc, Node *head, GetTokenMode ARG_UNUSED(mode))
|
||||||
TY_(ReportError)(doc, head, node, DISCARDING_UNEXPECTED);
|
TY_(ReportError)(doc, head, node, DISCARDING_UNEXPECTED);
|
||||||
TY_(FreeNode)( doc, node);
|
TY_(FreeNode)( doc, node);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!head->closed)
|
|
||||||
TY_(ReportError)(doc, head, node, MISSING_ENDTAG_FOR);
|
|
||||||
|
|
||||||
#if !defined(NDEBUG) && defined(_MSC_VER)
|
#if !defined(NDEBUG) && defined(_MSC_VER)
|
||||||
SPRTF("Exit ParseHead 1...\n");
|
SPRTF("Exit ParseHead 1...\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue