refactor: ask for charset and http_equiv attrs

This commit is contained in:
Marcos Caceres 2016-10-06 19:30:23 +11:00
parent 932cc104a6
commit 523d58b004

View file

@ -1693,8 +1693,8 @@ Bool TY_(TidyMetaCharset)(TidyDocImpl* doc)
{
if (!nodeIsMETA(node))
continue;
AttVal *charsetAttr = TY_(AttrGetById)(node, TidyAttr_CHARSET);
AttVal *httpEquivAttr = TY_(AttrGetById)(node, TidyAttr_HTTP_EQUIV);
AttVal *charsetAttr = attrGetCHARSET(node);
AttVal *httpEquivAttr = attrGetHTTP_EQUIV(node);
if(!charsetAttr && !httpEquivAttr)
continue;
// Meta charset comes in quite a few flavors: