WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: serious bug in a-prompt program

for

Number of posts in this thread: 1 (In chronological order)

From: Chris
Date: Sat, Jan 19 2002 1:26PM
Subject: serious bug in a-prompt program
No previous message | No next message

Jukka Korpela confirmed that I have discovered a serious bug in the A-prompt
program. I love the program, and only want to help improve it. I am very
glad that A-prompt is free. Chris Watson
In news:comp.infosystems.www.authoring.misc
message news: = EMAIL ADDRESS REMOVED =
"The Bicycling Guitarist" < = EMAIL ADDRESS REMOVED = > wrote:

> Hello. I thought it was all settled long ago, but a recent
> accessibility-awareness program (A-prompt) replaces "en-US" with
> "eng" in order to comply with its AAA level. What's up with that?

This is a serious bug in an otherwise excellent program.

I just downloaded the newest version (1.0.6) of A-Prompt via
http://aprompt.snow.utoronto.ca/
and it indeed says e.g. for
<html lang="en-US">
that the language has not been specified. Thus it rejects a completely
correct lang attribute. Worse, if I then use A-Prompt's corrective
features and select "English" from the language menu, it inserts
lang="eng", which is definitively incorrect. It even has Middle English
in the menu, causing lang="enm" to be inserted if selected!

The program logic is completely wrong as regards to lang attribute
values. There has been no change in the specifications: the primary
language code must be a _two_ letter code, such as "en", and any
additional information attached to it must beging with a hyphen, "-".
References: http://www.w3.org/TR/html4/struct/dirlang.html#h-8.1.1
and ISO 639. For the latter, there's a nice, though unauthoritative,
collection of info at http://www.laurentia.com/iso639/lang-en.htm

--
Yucca, http://www.cs.tut.fi/~jkorpela/




---
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/