Skip to content

Is it time to bring back the table missing summary warning? #210

@geoffmcl

Description

@geoffmcl

A post on [email protected] https://lists.w3.org/Archives/Public/html-tidy/2015AprJun/0009.html caused me to look deeper into the code concerning this missing table summary warning.

As stated in my reply, there are perhaps 2, or more, bugs here!

Case 1: First at present tidy5 no longer emits this warning in ANY case, which may be fine for html5 mode... But is it?

Case 2: Conversely, if the document IS html5, and you DO add a summary attribute, tidy5 does NOT warn that the summary attribute is not supported in HTML5 ;=(( Should it?

Case 3: Further, if the doctype declares the document as an earlier doctype, like say 4.01 strict, or transitional, htm4--, tidy5 still does not emit the warning ;=(( Should it?

The missing summary warning was REMOVED back on Nov 21, 2011, commit/4fdc30c (4fdc30c) by @sideshowbarker, with the comment "summary attribute is not required on table in HTML5". That seems fine if tidy5 was only ever meant to support html5...

But now we want it to support ALL html, so is it time to bring back this warning?

Should it ALWAYS be there as it was in tidy before 2011?

Or should an appropriate warning ONLY be issued for Cases 2 and/or 3 above?

Or other ideas...

I seek comments in this before jumping down a path ;=)).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions