fix(lexer): bad attribute reporting

This commit is contained in:
Marcos Caceres 2016-10-05 20:22:19 +11:00
parent 2d7ddfef94
commit b1629c4a4f

View file

@ -1717,8 +1717,8 @@ Bool TY_(TidyMetaCharset)(TidyDocImpl* doc)
{ {
tmbstr newValue = (tmbstr) TidyDocAlloc( doc, TY_(tmbstrlen)(enc) ); tmbstr newValue = (tmbstr) TidyDocAlloc( doc, TY_(tmbstrlen)(enc) );
TY_(tmbstrcpy)( newValue, enc ); TY_(tmbstrcpy)( newValue, enc );
TY_(ReportAttrError)( doc, node, charsetAttr, BAD_ATTRIBUTE_VALUE_REPLACED );
charsetAttr->value = newValue; charsetAttr->value = newValue;
TY_(ReportError)( doc, head, node, BAD_ATTRIBUTE_VALUE_REPLACED );
} }
// Make sure it's the first element. // Make sure it's the first element.
if ( node != head->next ){ if ( node != head->next ){