Issue #239 - no warn for apos enitity in html5++ mode
This commit is contained in:
parent
5380eb0413
commit
66e288a8e2
|
@ -983,7 +983,8 @@ static void ParseEntity( TidyDocImpl* doc, GetTokenMode mode )
|
||||||
if ( TY_(tmbstrcmp)(lexer->lexbuf+start, "&apos") == 0
|
if ( TY_(tmbstrcmp)(lexer->lexbuf+start, "&apos") == 0
|
||||||
&& !cfgBool(doc, TidyXmlOut)
|
&& !cfgBool(doc, TidyXmlOut)
|
||||||
&& !lexer->isvoyager
|
&& !lexer->isvoyager
|
||||||
&& !cfgBool(doc, TidyXhtmlOut) )
|
&& !cfgBool(doc, TidyXhtmlOut)
|
||||||
|
&& !(TY_(HTMLVersion)(doc) == HT50) ) /* Issue #239 - no warning if in HTML5++ mode */
|
||||||
TY_(ReportEntityError)( doc, APOS_UNDEFINED, lexer->lexbuf+start, 39 );
|
TY_(ReportEntityError)( doc, APOS_UNDEFINED, lexer->lexbuf+start, 39 );
|
||||||
|
|
||||||
if (( mode == OtherNamespace ) && ( c == ';' ))
|
if (( mode == OtherNamespace ) && ( c == ';' ))
|
||||||
|
|
Loading…
Reference in a new issue