Kev said:
The UK DDA is currently an unknown quantity when it comes to web sites
as all of the cases that have been bought to date have been settled out
of court. Though I can understand how a local authority might prefer to
comply anyway (and generally approve).
I see. You have a paragraph of text within a TD that you want to
navigate to a URL if clicked upon (and preferably in a new window).
However, that TD is adjacent to a TD containing an image link that
navigates to the same URL. All else being equal (and it is a long way
from being equal as the page stands [1]) that image link would satisfy
the WCAG 1.0 requirement for the necessary functionality to be
accessible through the keyboard. Anyone needing to navigate to the URL
can use that link and view the accompanying text as an explanation of
the link (probably a good idea as some of the images are not
particularly self-explanatory).
Thus you can regard clicking on the text in addition to the link as an
optional extra upon which the viability of the page does not hang.
Those image links could do with some more work; for example the alt text
"ODPM logo: link to ODPM website (new window)" will be of little use to
ordinary members of the UK public as they will not associate the
abbreviation with the Office of the Deputy Prime Minister (and those
reading the alt text will not necessarily be in a position to read the
text from the logo).
My impression of this question (and experience of how web site
accessibility is (miss)handled generally) is that you are trying to get
the page to pass an automated accessibility test. Unfortunately
automated testing is at best a tool that can be used in creating an
accessible web page; passing the tests in no way guarantees that the
results will be accessible, and a completely accessible page can still
fail such a test. Appropriately skilled humans are probably the best
means of achieving accessibility in web pages, and assessing the
results. (Though my judgement would be that retro-fitting accessibility
onto the site as it stands is not viable and it will only really be
achievable through a re-design from the ground up.)
Your own problem demonstrates this admirably because the feature of the
page that is concerning you is not inaccessible to keyboard users (as
such, the pop-up window problem remains). They have the other link to
use when they want to navigate. But your automated testing software will
always see the onclick handler in the TD and can know nothing about what
it does or the fact that it actually does no more than reproduce the
functionality from the adjacent cell.
To placate the machine you would have to lose the onclick handler form
the TD and wrap the text within the cell in a link. Maybe CSS styling
the link into a block element and having it fill the TD (though that
doesn't always work that well on IE browsers) and styling the text to
look like it does now.
Incidentally, it is a mistake to set the cursor for the cell to a hand
using CSS when the functionality is javascript dependent as they are
both optional technologies and independently available and can be
separately disabled/unavailable. A normal javascript design pattern
would add the styling that only made sense in the presence of javascript
using javascript so as not to mislead the user into believing they may
have functionality that they do not have. Also - style="CURSOR: hand" -
is an IE only formulation; using standard CSS would be more in keeping
with the WCAG 1.0 recommendations (and a pragmatic approach is available
to accommodate the older IE versions that do not understand the real CSS
cursor
ointer
. (and don't bother arguing that everyone uses IE
because accessibility *requires* that a site be usable in more uncommon
UAs).
Yes. Here is the page in question. Check it out.
http://www.darlington.gov.uk/ ...
I wonder what it is about UK local authorities that make them incapable
of producing a web site that is anything approaching good? In its
class -
www.darlington.gov.uk - appears to be above average, but when
every line of code on a page speaks of total failure to comprehend the
medium or any of the technologies it uses being above average does no
more than reveal how bad UK local authority sites are on average.
The page starts with an incomplete HTML 4.0 transitional DOCTYPE
declaration, putting all of the browsers that switch modes into quirks
mode. The next element is a SCRIPT, lacking the required type attribute
and invalidity situated outside of even the HTML element (let along the
HEAD or BODY). Then the nonsense really kicks in; the whole page is
marked up in a pseudo-XHTML, but not an XHTML 1.0 appendix C HTML
"compatibility" mark-up (which wouldn't make sense with an HTML 4.0
transitional DOCTYPE anyway) but a true nonsense mark-up:-
<LINK rel="stylesheet" type="text/css"
href="/Common/Css/Services.css"/>
- mixed upper and lower case tag names, some contentless elements have
the space before the - /> - and other do not, attributes unknown even in
transitional HTML, etc, etc.
... . The use of JavaScript is in danger of
being outlawed on this site and I am fighting to save it.
Javascript and accessibility are not mutually exclusive. But when the
people responsible for a web site clearly don't even comprehend (x?)HTML
it is difficult to see how they could make a valid judgement about
anything that they do on their site.
There may well be no benefits. It's just for the sake of
abiding by the rules.
If by "the rules" you mean the (UK) DDA then the rules require that the
site *be* accessible (assuming that the DDA does apply to web sites
(pending actual legal precedent)), passing accessibility valeting
software produce X is not complying with either the letter of the DDA or
its spirit.
Richard.
[1] Currently the biggest barrier to keyboard operation of your page is
a 'search' submit button that has been given an onclick handler, and had
that handler doubled-up with an onkeypress handler (presumably motivated
by this goal of "accessibility"). So the user arrives on the page and
starts tabbing through the links and form controls using their keyboard
in an attempt to get to the links that they want to use. They arrive at
this submit button and the onkeypress handler notices that they have not
entered anything in the "search" text field and cancels the default
action, which, for a tab key press, is navigation on to the next
control/link. And shift-tab is also cancelled so they cannot go back
either, not even go back to the "search" text field and to enter
something so that the form validation doesn't cancel their keyboard
navigation attempts. And now they are stuck; end of keyboard
navigation - the page is now fundamentally inaccessible (with an
additional negative impact on the usability of the entire browser).
Of course this has happened because onkeypress has been seen as some
sort of accessibility panacea while the wording of the WCAG 1.0
checkpoint has been disregarded. It says that the event handlers used
should be logical and independent of input device, and forms have an
excellent logical and input device independent event handler that is
ideal for form validation: onsubmit. Unfortunately when web 'developers'
have no comprehension of what they are doing ...