Fix XHTML table summary attribute problems.

TheLibrarian - March 4, 2004 - 21:02
Project:Drupal
Version:x.y.z
Component:module system
Category:bug report
Priority:normal
Assigned:TheLibrarian
Status:won't fix
Description

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 bytesIgnoredNoneNone

#1

Dries - March 5, 2004 - 20:50

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

TheLibrarian - March 7, 2004 - 02:43

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

killes@www.drop.org - March 9, 2004 - 02:29
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

Dries - March 27, 2004 - 11:58
 
 

Drupal is a registered trademark of Dries Buytaert.