flagging <table> as "layout" in v10

For technical support for all editions of CSE HTML Validator. Includes bug reports.

flagging <table> as "layout" in v10

Postby anionic » Mon Sep 06, 2010 11:35 am

v9 encouraged me to include the word "layout" in the summary attribute of any non-data table to suppress inappropriate msgs, so I did and it did. But v10 is warning about missing <th> elements in these tables and says
If this is a layout table, then include "layout" as part of the table's "id" attribute value and this message will not be displayed.

I really don't want to do this (it could break CSS and scripts) and wonder whether I can configure Validator to behave as before?
anionic
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 8
Joined: Wed Oct 31, 2007 12:23 pm
Location: Staffordshire, UK

Re: flagging <table> as "layout" in v10

Postby Albert Wiersch » Tue Sep 07, 2010 10:13 am

Hello,

For layout/non-data tables, it is best (more proper) to not use the "summary" attribute or set it to an empty string, that is why this has changed in V10.

I could probably turn this message off if "layout" is used in the summary attribute, like in it was turned off in v9, but v10 won't recommend that approach anymore. Does this sound good?

UPDATE: The next V10 update should assume tables with "layout" in the "summary" attribute value are layout tables and will suppress the warning about missing header cells, however, this warning message may be generated (which can be disabled if desired):
This appears to be a layout table. If so, then the "summary" attribute should not be used or its value should be empty. Visit http://www.w3.org/TR/WCAG20-TECHS/H73 for more information.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2435
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX


Return to CSE Tech Support

Who is online

Users browsing this forum: No registered users and 2 guests