From 7777a71913f15a6ee0261eec3f4fd6290316a84a Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Thu, 31 Mar 2016 14:50:03 +0200 Subject: [PATCH] Issue #369 - Remove Debug asserts --- src/parser.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/parser.c b/src/parser.c index 2d9de5c..0447fe8 100644 --- a/src/parser.c +++ b/src/parser.c @@ -1564,8 +1564,13 @@ void TY_(ParseNamespace)(TidyDocImpl* doc, Node *basenode, GetTokenMode mode) n->closed = yes; TY_(ReportError)(doc, n->parent, n, MISSING_ENDTAG_BEFORE); } - assert(outside == no ? n == mp : 1); - assert(outside == yes ? n == basenode->parent : 1); + + /* Issue #369 - Since 'assert' is DEBUG only, and there are + simple cases where these can be fired, removing them + pending feedback from the original author! + assert(outside == no ? n == mp : 1); + assert(outside == yes ? n == basenode->parent : 1); + =================================================== */ if (outside == no) {