W3C home > Mailing lists > Public > public-pfwg-comments@w3.org > January to March 2008

code typo http://www.w3.org/TR/wai-aria-practices/

From: Jim Jewett <jimjjewett@gmail.com>
Date: Sat, 8 Mar 2008 19:51:14 -0500
Message-ID: <fb6fbf560803081651u93ba533uf60f0906e5b0fecd@mail.gmail.com>
To: public-pfwg-comments@w3.org

Section 2, step 5, sample code,

The final else clause for other keycodes has
I
(1)     "return return true;"


Also,

(2)  I think it might be more clear if the code said

     if ((event.type == "keydown") || (event.type == "keypress"))

rather than suggesting the cases must be separate.

(3)  var buttonid = getPrevButtonID();  // This is an author defined function

It might help to give a sample implementation in terms of DOM walking.

-jJ
Received on Sunday, 9 March 2008 00:51:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 9 March 2008 00:51:23 GMT