Skip to content

Commit 7bdc31a

Browse files
committed
Issue #377 - Table summary attribute also applies to XHTML5
1 parent 9a80938 commit 7bdc31a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tags.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,8 @@ void CheckTABLE( TidyDocImpl* doc, Node *node )
924924
{
925925
AttVal* attval;
926926
Bool HasSummary = (TY_(AttrGetById)(node, TidyAttr_SUMMARY) != NULL) ? yes : no;
927-
Bool isHTML5 = (TY_(HTMLVersion)(doc) == HT50) ? yes : no;
927+
uint vers = TY_(HTMLVersion)(doc); /* Issue #377 - Also applies to XHTML5 */
928+
Bool isHTML5 = ((vers == HT50)||(vers == XH50)) ? yes : no;
928929

929930
TY_(CheckAttributes)(doc, node);
930931

0 commit comments

Comments
 (0)