Validation And WAI-ARIA

Posted by Nile | Posted in WordPress | Posted on 11-28-2009 | 3 Comments

Tags:

For those who are W3 warriors, web standard is important. However, for those validating each page, you will run into a validation error on your comments.php with aria-required=’true’.

This is the code chunk where it is found in comments.php:


<?php if ($req) echo "aria-required='true'"; ?>

This refers to an WAI-ARIA Primer, which is basically an add-on to XHTML 1.1 for use in for accessibility with dynamic applications. It helps those with handicap to know what fields are required. The markup for WAI-ARIA is still in draft and has been since February 2008. While currently in draft and not yet fully supported, this is an area that either the template designer can either leave out the WordPress coding or keep it.

For accessibility sake and hopefully more development with WAI-ARIA, it is harmless to leave the code on comments.php.

What are your views on this feature?