From 3aa50740da96fbeed1afcb7d651268961a175238 Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Sun, 21 Jun 2015 19:49:44 +0200 Subject: [PATCH] Issue #215 - only issue warning if NOT HTML5 mode --- src/parser.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/parser.c b/src/parser.c index 49bd4d4..209a8b3 100644 --- a/src/parser.c +++ b/src/parser.c @@ -1727,7 +1727,14 @@ void TY_(ParseInline)( TidyDocImpl* doc, Node *element, GetTokenMode mode ) else if ( TY_(IsPushed)(doc, node) && node->type == StartTag && nodeIsQ(node) ) { - TY_(ReportWarning)(doc, element, node, NESTED_QUOTATION); + /*\ + * Issue #215 - such nested quotes are NOT a problem if HTML5, so + * only issue this warning if NOT HTML5 mode. + \*/ + if (TY_(HTMLVersion)(doc) != HT50) + { + TY_(ReportWarning)(doc, element, node, NESTED_QUOTATION); + } } if ( TY_(nodeIsText)(node) )