From 4fdc30c120612ccefad034de7a8f1f031587873f Mon Sep 17 00:00:00 2001 From: "Michael[tm] Smith" Date: Mon, 21 Nov 2011 12:34:05 +0900 Subject: [PATCH] summary attribute is not required on table in HTML5 --- src/tags.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/tags.c b/src/tags.c index 372728c..386c629 100644 --- a/src/tags.c +++ b/src/tags.c @@ -763,21 +763,9 @@ void CheckAREA( TidyDocImpl* doc, Node *node ) void CheckTABLE( TidyDocImpl* doc, Node *node ) { AttVal* attval; - Bool HasSummary = TY_(AttrGetById)(node, TidyAttr_SUMMARY) != NULL; TY_(CheckAttributes)(doc, node); - /* a missing summary attribute is bad accessibility, no matter - what HTML version is involved; a document without is valid */ - if (cfg(doc, TidyAccessibilityCheckLevel) == 0) - { - if (!HasSummary) - { - doc->badAccess |= BA_MISSING_SUMMARY; - TY_(ReportMissingAttr)( doc, node, "summary"); - } - } - /* convert to
*/ if ( cfgBool(doc, TidyXmlOut) && (attval = TY_(AttrGetById)(node, TidyAttr_BORDER)) ) {