From 7bdc31af760acefbb415d1202f78837b09a26286 Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Mon, 29 Feb 2016 19:58:55 +0100 Subject: [PATCH] Issue #377 - Table summary attribute also applies to XHTML5 --- src/tags.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tags.c b/src/tags.c index 35a172c..ed3436c 100644 --- a/src/tags.c +++ b/src/tags.c @@ -924,7 +924,8 @@ void CheckTABLE( TidyDocImpl* doc, Node *node ) { AttVal* attval; Bool HasSummary = (TY_(AttrGetById)(node, TidyAttr_SUMMARY) != NULL) ? yes : no; - Bool isHTML5 = (TY_(HTMLVersion)(doc) == HT50) ? yes : no; + uint vers = TY_(HTMLVersion)(doc); /* Issue #377 - Also applies to XHTML5 */ + Bool isHTML5 = ((vers == HT50)||(vers == XH50)) ? yes : no; TY_(CheckAttributes)(doc, node);