E-mail List Archives
Re: using script emulated links; preferable or not- wcag2
From: Christian Heilmann
Date: Jan 21, 2008 1:30AM
- Next message: Laura Carlson: "HTML5 fiist working draft"
- Previous message: Patrick H. Lauke: "Re: using script emulated links; preferable or not- wcag2"
- Next message in Thread: None
- Previous message in Thread: Patrick H. Lauke: "Re: using script emulated links; preferable or not- wcag2"
- View all messages in this Thread
> which one is the better alternative not just from compliance but from usability perspective as well?
That is the alternative. Compliance without being usable is not making
any sense for the end users or the success of the product. Adding HTML
that only works with JavaScript adds extra weight that is not needed
and will confuse. If you need a link for something, use a link. You
can always add another element around it and add a click listener to
this one using event delegation[1]. This'll allow keyboard users and
those without JS to follow the link (and that includes search engine
bots!) and others to click the parent element, too.
HTH
Chris
[1] http://icant.co.uk/sandbox/eventdelegation/
--
Chris Heilmann
Book: http://www.beginningjavascript.com
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/
- Next message: Laura Carlson: "HTML5 fiist working draft"
- Previous message: Patrick H. Lauke: "Re: using script emulated links; preferable or not- wcag2"
- Next message in Thread: None
- Previous message in Thread: Patrick H. Lauke: "Re: using script emulated links; preferable or not- wcag2"
- View all messages in this Thread