From 0f1e625324fae174540bb00ccfab03895abe8cb0 Mon Sep 17 00:00:00 2001 From: Jim Derry Date: Sat, 13 May 2017 20:46:48 -0400 Subject: [PATCH] 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. --- src/attrs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/attrs.c b/src/attrs.c index 4f1c449..3eccbe6 100644 --- a/src/attrs.c +++ b/src/attrs.c @@ -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;