Issue #215 - only issue warning if NOT HTML5 mode
This commit is contained in:
parent
0b0eb32843
commit
3aa50740da
|
@ -1726,9 +1726,16 @@ void TY_(ParseInline)( TidyDocImpl* doc, Node *element, GetTokenMode mode )
|
||||||
}
|
}
|
||||||
else if ( TY_(IsPushed)(doc, node) && node->type == StartTag &&
|
else if ( TY_(IsPushed)(doc, node) && node->type == StartTag &&
|
||||||
nodeIsQ(node) )
|
nodeIsQ(node) )
|
||||||
|
{
|
||||||
|
/*\
|
||||||
|
* Issue #215 - such nested quotes are NOT a problem if HTML5, so
|
||||||
|
* only issue this warning if NOT HTML5 mode.
|
||||||
|
\*/
|
||||||
|
if (TY_(HTMLVersion)(doc) != HT50)
|
||||||
{
|
{
|
||||||
TY_(ReportWarning)(doc, element, node, NESTED_QUOTATION);
|
TY_(ReportWarning)(doc, element, node, NESTED_QUOTATION);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ( TY_(nodeIsText)(node) )
|
if ( TY_(nodeIsText)(node) )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue