Summary advice for table

Marc Gueury <[email protected]> Thu, 02 Feb 2006 12:05:21 +0100
Newsgroups gmane.comp.web.html-tidy.devel
Message-ID <[email protected]>
Hi all,

I know the question came already to the mailing list. But when using 
tidy, tidy reports a warning when the summary attribute is missing from 
a table tag.
I prefered to write a mail before logging a bug to be able to discuss it.

ex:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>
      table test
    </title>
  </head>
  <body>
    <table>
      <tr>
        <td>

          hello
        </td>
      </tr>
    </table>
  </body>
</html>

Report this warning:
 > line 9 column 5 - Warning: <table> lacks "summary" attribute

The summary attr check has a good reason to be there for aural browsers. 
But I would prefer to see this warning only when accessibility level > 0.
The reason I am asking  is that nearly nobody has a summary attr in his 
tables. And most people do not want to see this warning when checking 
their pages if they are not interested in accessibility.

So, currently, I have a bad work-around in my in the Firefox extension 
that I would like to remove :-) I run always tidy with an accessibility 
level 1. Then skip the display of the accessibility message if the user 
had not asked them...

* The result is that the summary table message are not shown
* But it has a nasty side effect, it is that then Tidy do not report the 
missing alt tags for the images. It is annoying since alt is a mandatory 
attribute. This is why I would like to change this summary code:

    /* a missing summary attribute is bad accessibility, no matter
       what HTML version is involved; a document wihtout is valid */
    if (cfg(doc, TidyAccessibilityCheckLevel) == 0)
    {
        if (!HasSummary)
        {
            doc->badAccess |= MISSING_SUMMARY;
            ReportMissingAttr( doc, node, "summary");
        }
    }

I would like is to change it to
 > if (cfg(doc, TidyAccessibilityCheckLevel) > 0)

May I log a bug ?

Thanks by advance,

Marc



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642