Welcome Guest, Not a member yet? Register   Sign In
Getting Pagination to pass WAI accessibility validation
#1

[eluser]carvingCode[/eluser]
Checking what Cindy Says about the accessibility (508 and WAI) of my pages, I noticed that there was a problem with the defaults the Pagination library uses. The problem (WAI) had to do with no printable character between adjacent links.

Below is what I came up with that satisfied the WAI validator. I used the pipe character as separator, but any printable character will do.

If someone has come up with a better idea (other than not doing anything) I'd be happy to take a look.

Code:
$config['first_tag_open'] = ' | ';
$config['first_tag_close'] = ' |';
$config['last_tag_open'] = '| ';
$config['last_tag_close'] = '| ';
$config['num_tag_open'] = ' | ';
$config['next_tag_open'] = ' | ';
$config['next_tag_close'] = ' ';

Something I would like to do is put these statements someplace else other than repeating them for each separate method that needs them. I tried putting them in the main config files, but that didn't work.

Any suggestions?

TIA


Messages In This Thread
Getting Pagination to pass WAI accessibility validation - by El Forum - 04-29-2010, 01:41 PM
Getting Pagination to pass WAI accessibility validation - by El Forum - 04-29-2010, 11:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB