fix: incorrect check for first element in head

This commit is contained in:
Marcos Caceres 2016-10-06 19:07:44 +11:00
parent b1629c4a4f
commit 53ee94ddba

View file

@ -1721,7 +1721,7 @@ Bool TY_(TidyMetaCharset)(TidyDocImpl* doc)
charsetAttr->value = newValue;
}
// Make sure it's the first element.
if ( node != head->next ){
if ( node != head->content->next ){
TY_(RemoveNode)( node );
TY_(InsertNodeAtStart)( head, node );
}