Download & Extend

Fix XHTML table summary attribute problems.

Project:Drupal core
Version:x.y.z
Component:module system
Category:bug report
Priority:normal
Assigned:TheLibrarian
Status:closed (won't fix)

Issue Summary

On a mission to make valid XHTML...

This puts the problem in the hands of the modules that are creating tables. It is also a minor bug fix for the table attributes: if not specified, the variable was null instead of an empty array. From now on, people can use my example for checking attributes for tables.

I almost think this should be moved to a function outside of theme_table(). Thoughts? Suggestions?

AttachmentSizeStatusTest resultOperations
theme_table_patch.txt682 bytesIgnored: Check issue status.NoneNone

Comments

#1

AFAIK, XHTML does not require the use of the 'summary'-attribute (though accessibility standards do).

I'm not convinced this is the proper way to enforce the use of a 'summary'-attribute: we don't do so for any other attribute, and validating a page using a validator is a breeze.

#2

This patch was mainly a push for module developers to fix their code so that they are fully compliant with accessibility standards (yes, yes, I know it's not required in the XHTML specification). It was also meant to demonstrate how people can check attributes. In retrospect, a demo theme would probably be a better place to do this.

#3

Component:theme system» module system

I think this patch shouldn't make it into core. You should rather provide patches for modules that need such a summary field.

#4

nobody click here