W3C home > Mailing lists > Public > public-comments-wcag20@w3.org > September 2009

SCR30: Script for Expanding Link Text

From: <makoto.ueki@gmail.com>
Date: Tue, 1 Sep 2009 22:07:00 +0000 (GMT)
To: public-comments-wcag20@w3.org
Message-Id: <20090901220700.A0E194DD6E@crusher.w3.org>

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].className="expand" + cn;




Received on Tuesday, 1 September 2009 22:07:09 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:14:52 UTC