- From: <makoto.ueki@gmail.com>
- Date: Tue, 1 Sep 2009 22:07:00 +0000 (GMT)
- To: public-comments-wcag20@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].appendChild(document.createTextNode(linkContext[cn]));
}
links[link].className="expand" + cn;
}
}
-->
</script>
Received on Tuesday, 1 September 2009 22:07:09 UTC