Issue #132 - avoid warning if configured to omit-optional-tags.
Difficult decision to avoid head warning.
This commit is contained in:
parent
3e0cfbb88d
commit
7a3afd41ca
|
@ -3367,7 +3367,12 @@ void TY_(ParseHead)(TidyDocImpl* doc, Node *head, GetTokenMode ARG_UNUSED(mode))
|
|||
|
||||
if (TY_(nodeIsText)(node))
|
||||
{
|
||||
/*\ Issue #132 - avoid warning for missing body tag,
|
||||
* if configured to --omit-otpional-tags yes
|
||||
\*/
|
||||
if (!cfgBool( doc, TidyOmitOptionalTags )) {
|
||||
TY_(ReportError)(doc, head, node, TAG_NOT_ALLOWED_IN);
|
||||
}
|
||||
TY_(UngetToken)( doc );
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue