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:
Jim Derry 2017-05-13 20:46:48 -04:00
parent 86338b2634
commit 0f1e625324
1 changed files with 1 additions and 1 deletions

View File

@ -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;