Why does pagination use SPAN rather than A tags?

Why does pagination use SPAN rather than A tags?

adamterlsonadamterlson Posts: 4Questions: 0Answers: 0
edited July 2011 in General
I'm curious: why does pagination use SPAN tags rather than A tags? They are links, so wouldn't using an A tag be more appropriate?

[code]1
2
3
4
5[/code]

I'm sure there was a calculated reason, merely wondering what it might be! I ask as I'm concerned about 508 compliance.

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    You are absolutely correct - this is wrong in DataTables! This will be fixed in DataTables 2.x when that happens. The reason I am reluctant to fix it in the 1.x series of releases is for reasons of backwards compatibility with styles which have already been applied to deployed installs of DataTables.

    What I would suggest for now is to use a pagination plug-in which basically does exactly the same thing as the built-in pagination (the built-in one is really just a plug-in itself, so it's easy to pull out!), and change the SPAN tags for A tags.

    Ultimately what I would really like to do is have DataTables use ARIA to be as accessible as possible. If you know any ARIA consultants I would be very interested to know as I've not had a huge amount of luck thus far in that particular hunt.

    Regards,
    Allan
  • adamterlsonadamterlson Posts: 4Questions: 0Answers: 0
    Thank you for your reply, Allan! I unfortunately don't know of anyone in the Aria space off-hand, but if you need any help in your accessibility endeavour (or any other for that matter!), please let me know. You can contact me over at http://www.terlsonokeefe.com.
This discussion has been closed.