refactor: ask for charset and http_equiv attrs
This commit is contained in:
parent
932cc104a6
commit
523d58b004
|
@ -1693,8 +1693,8 @@ Bool TY_(TidyMetaCharset)(TidyDocImpl* doc)
|
||||||
{
|
{
|
||||||
if (!nodeIsMETA(node))
|
if (!nodeIsMETA(node))
|
||||||
continue;
|
continue;
|
||||||
AttVal *charsetAttr = TY_(AttrGetById)(node, TidyAttr_CHARSET);
|
AttVal *charsetAttr = attrGetCHARSET(node);
|
||||||
AttVal *httpEquivAttr = TY_(AttrGetById)(node, TidyAttr_HTTP_EQUIV);
|
AttVal *httpEquivAttr = attrGetHTTP_EQUIV(node);
|
||||||
if(!charsetAttr && !httpEquivAttr)
|
if(!charsetAttr && !httpEquivAttr)
|
||||||
continue;
|
continue;
|
||||||
// Meta charset comes in quite a few flavors:
|
// Meta charset comes in quite a few flavors:
|
||||||
|
|
Loading…
Reference in a new issue