Address #378
Addresses issue #378 by NOT emitting warnings if `fix-uri` is `no`, for HTML5 documents. This preserves existing behavior for legacy document types.
This commit is contained in:
parent
86338b2634
commit
0f1e625324
|
@ -1617,7 +1617,7 @@ void TY_(CheckUrl)( TidyDocImpl* doc, Node *node, AttVal *attval)
|
|||
{
|
||||
if ( cfgBool(doc, TidyFixUri) )
|
||||
TY_(ReportAttrError)( doc, node, attval, ESCAPED_ILLEGAL_URI);
|
||||
else
|
||||
else if ( !(TY_(HTMLVersion)(doc) & VERS_HTML5) )
|
||||
TY_(ReportAttrError)( doc, node, attval, ILLEGAL_URI_REFERENCE);
|
||||
|
||||
doc->badChars |= BC_INVALID_URI;
|
||||
|
|
Loading…
Reference in a new issue