From b1629c4a4f5f6eb1462048aa74e793e045b92ed1 Mon Sep 17 00:00:00 2001 From: Marcos Caceres Date: Wed, 5 Oct 2016 20:22:19 +1100 Subject: [PATCH] fix(lexer): bad attribute reporting --- src/lexer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lexer.c b/src/lexer.c index 882522c..91e0535 100644 --- a/src/lexer.c +++ b/src/lexer.c @@ -1717,8 +1717,8 @@ Bool TY_(TidyMetaCharset)(TidyDocImpl* doc) { tmbstr newValue = (tmbstr) TidyDocAlloc( doc, TY_(tmbstrlen)(enc) ); TY_(tmbstrcpy)( newValue, enc ); + TY_(ReportAttrError)( doc, node, charsetAttr, BAD_ATTRIBUTE_VALUE_REPLACED ); charsetAttr->value = newValue; - TY_(ReportError)( doc, head, node, BAD_ATTRIBUTE_VALUE_REPLACED ); } // Make sure it's the first element. if ( node != head->next ){