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

Commit 9b6212c

Browse files
change to ARIA spec: adding aria-controls
1 parent 41e10f1 commit 9b6212c

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

CHANGELOG

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
*v1.1* (2010-09-29)
2+
3+
* change to ARIA spec: adding aria-controls
4+
5+
--
6+
17
*v1.0* (2010-08-11)
28

39
* switch to 1.0

min/TabInterface.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/TabInterface.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
Function: TabInterface()
33
Author: Aaron Gustafson (aaron at easy-designs dot net)
44
Creation Date: 7 December 2006
5-
Version: 1.0
5+
Version: 1.1
66
Homepage: http://github.com/easy-designs/TabInterface.js
77
License: MIT License (see MIT-LICENSE)
88
------------------------------------------------------------------------------*/
99
function TabInterface( _cabinet, _i ){
1010
// Public Properties
11-
this.Version = '1.0'; // version
11+
this.Version = '1.1'; // version
1212

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

0 commit comments

Comments
 (0)