From 9caecb80cf632cf0d332922e96f408ac19a09f6e Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Sat, 5 Dec 2015 12:45:59 +0100 Subject: [PATCH] Revert "Fix for head closing tag not reported (#327)" This reverts commit 61cfcb15550bfa5b266cb238d0e34b18d810bad9. 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. --- src/parser.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/parser.c b/src/parser.c index 583b2ef..c942bd7 100644 --- a/src/parser.c +++ b/src/parser.c @@ -3759,10 +3759,6 @@ void TY_(ParseHead)(TidyDocImpl* doc, Node *head, GetTokenMode ARG_UNUSED(mode)) TY_(ReportError)(doc, head, node, DISCARDING_UNEXPECTED); TY_(FreeNode)( doc, node); } - - if (!head->closed) - TY_(ReportError)(doc, head, node, MISSING_ENDTAG_FOR); - #if !defined(NDEBUG) && defined(_MSC_VER) SPRTF("Exit ParseHead 1...\n"); #endif