fix: incorrect check for first element in head
This commit is contained in:
parent
b1629c4a4f
commit
53ee94ddba
|
@ -1721,7 +1721,7 @@ Bool TY_(TidyMetaCharset)(TidyDocImpl* doc)
|
||||||
charsetAttr->value = newValue;
|
charsetAttr->value = newValue;
|
||||||
}
|
}
|
||||||
// Make sure it's the first element.
|
// Make sure it's the first element.
|
||||||
if ( node != head->next ){
|
if ( node != head->content->next ){
|
||||||
TY_(RemoveNode)( node );
|
TY_(RemoveNode)( node );
|
||||||
TY_(InsertNodeAtStart)( head, node );
|
TY_(InsertNodeAtStart)( head, node );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue