W3C home > Mailing lists > Public > public-wai-ert@w3.org > July 2005

Re: Formalization of rule 91

From: Chris Ridpath <chris.ridpath@utoronto.ca>
Date: Mon, 4 Jul 2005 10:15:34 -0400
Message-ID: <011e01c580a2$d7bafba0$e29a968e@WILDDOG>
To: "Vicente Luque Centeno" <vlc@it.uc3m.es>, <public-wai-ert@w3.org>

Right. Every select element must have one explicitly associated label.

Chris

----- Original Message ----- 
From: "Vicente Luque Centeno" <vlc@it.uc3m.es>
To: <public-wai-ert@w3.org>
Sent: Saturday, June 25, 2005 12:14 PM
Subject: Formalization of rule 91



Hi,

Rule 91 [1] can be formalized saying:

//select[let $ff:=self::node() return
count(//label[@for=$ff/@id]) != 1] = ()

PS: In other words, every select (which we name with a variable), must
have one associated label, i.e., one label whose "for" attribute equals
the "id" attribute of the select).

PS2: There are over 60 formalized tests (using XPath and XQuery) at
http://www.it.uc3m.es/vlc/wai/checks.xml .

[1] http://www.w3.org/WAI/GL/WCAG20/tests/test91.html

Vicente Luque Centeno
Dep. Ingeniería Telemática
Universidad Carlos III de Madrid
http://www.it.uc3m.es/vlc
Received on Monday, 4 July 2005 14:16:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:26 GMT