Skip to content
This repository was archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
change to ARIA spec: adding aria-controls
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongustafson committed Sep 29, 2010
1 parent 41e10f1 commit 9b6212c
Showing 3 changed files with 12 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
*v1.1* (2010-09-29)

* change to ARIA spec: adding aria-controls

--

*v1.0* (2010-08-11)

* switch to 1.0
4 changes: 2 additions & 2 deletions min/TabInterface.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions src/TabInterface.js
Original file line number Diff line number Diff line change
@@ -2,13 +2,13 @@
Function: TabInterface()
Author: Aaron Gustafson (aaron at easy-designs dot net)
Creation Date: 7 December 2006
Version: 1.0
Version: 1.1
Homepage: http://github.com/easy-designs/TabInterface.js
License: MIT License (see MIT-LICENSE)
------------------------------------------------------------------------------*/
function TabInterface( _cabinet, _i ){
// Public Properties
this.Version = '1.0'; // version
this.Version = '1.1'; // version

// Private Properties
var
@@ -84,7 +84,8 @@ function TabInterface( _cabinet, _i ){
// build the tab
tab = _els.li.cloneNode( true );
tab.setAttribute( 'id', _id + '-' + i + '-tab' );
tab.setAttribute( 'aria-describedby', _id + '-' + i );
tab.setAttribute( 'aria-controls', _id + '-' + i );
tab.setAttribute( 'aria-describedby', _id + '-' + i );
tab.onclick = swap; // set the action
tab.onkeydown = moveFocus; // add the keyboard control
tab.onfocus = swap;

0 comments on commit 9b6212c

Please sign in to comment.