Re: Query: HTML table summary attribute

Hi William,

What version of tidy are you running?

Where did you get the binary from? A download, or
did you build it from source? What OS?

What do you see when adding the command --version

The current version, from the htacg source -
  https://github.com/htacg/tidy-html5
is 4.9.26...

At present tidy5, and for quite some time now, no longer
emits this warning in /ANY/ case, which may be fine for
html5 mode...

But conversely, perhaps a bug, 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 ;=((

Further, another possible bug is that even if the doctype declares
the document as an earlier doctype, like say 4.01 strict, or
transitional, tidy5 still does not emit the warning ;=((

It may be worth raising an issue for these...
  https://github.com/htacg/tidy-html5/issues

In fact, checking the current code, in CheckTABLE(),
the code to check if a 'summary' is present has been
removed! It was REMOVED back on Nov 21, 2011,
commit/4fdc30c by @sideshowbarker, with the comment
"summary attribute is not required on table in HTML5".

So you /MUST/ be running some earlier version?

Regards,
Geoff.

Received on Sunday, 3 May 2015 12:03:31 UTC