We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a80938 commit 7bdc31aCopy full SHA for 7bdc31a
src/tags.c
@@ -924,7 +924,8 @@ void CheckTABLE( TidyDocImpl* doc, Node *node )
924
{
925
AttVal* attval;
926
Bool HasSummary = (TY_(AttrGetById)(node, TidyAttr_SUMMARY) != NULL) ? yes : no;
927
- Bool isHTML5 = (TY_(HTMLVersion)(doc) == HT50) ? yes : no;
+ uint vers = TY_(HTMLVersion)(doc); /* Issue #377 - Also applies to XHTML5 */
928
+ Bool isHTML5 = ((vers == HT50)||(vers == XH50)) ? yes : no;
929
930
TY_(CheckAttributes)(doc, node);
931
0 commit comments