- From: Ben Caldwell <caldwell@trace.wisc.edu>
- Date: Tue, 01 Sep 2009 17:26:26 -0500
- To: Makoto Ueki <makoto.ueki@gmail.com>
- CC: "public-comments-wcag20@w3.org" <public-comments-wcag20@w3.org>
- Message-ID: <4A9D9F92.2070000@trace.wisc.edu>
Hi Makoto,
Thank you for catching this. We received a similar comment about this
earlier this year and will be including some changes to this example in
the next update of the techniques documents.
Refer to Issue 2714 [1] for details about the changes to be implemented.
All the best,
-Ben
[1] http://trace.wisc.edu/bugzilla_wcag/issuereports/issue_ind.php?id=2714
makoto.ueki@gmail.com wrote:
> Name: Makoto Ueki
> Email: makoto.ueki@gmail.com
> Affiliation: Infoaxia, Inc.
> Document: TD
> Item Number: SCR30
> Part of Item: Examples
> Comment Type: technical
> Summary of Issue: SCR30: Script for Expanding Link Text
> Comment (Including rationale for any proposed change):
> This script repeats expanding link text when clicking over and over.
>
> Proposed Change:
> Adding "links[link].className="expand" + cn;" to scripts would fix this issue.
>
>
>
> Modify scripts as following:
>
>
>
> <script type="text/javascript">
>
> <!--
>
> var linkContext = {
>
> "hist":" version of The History of the Web",
>
> "cook":" version of Cooking for Nerds"
>
>
>
> };
>
>
>
> function doExpand() {
>
> var links = document.links;
>
> var link;
>
>
>
>
>
> for (link in links) {
>
> var cn = links[link].className;
>
> if (linkContext[cn] ) {
>
> links[link].appendChild(document.createTextNode(linkContext[cn]));
>
> }
>
> links[link].className="expand" + cn;
>
> }
>
> }
>
> -->
>
> </script>
>
>
>
--
Ben Caldwell | <caldwell@trace.wisc.edu>
Trace Research and Development Center <http://trace.wisc.edu>
Received on Tuesday, 1 September 2009 22:27:51 UTC