From b9ffc34710212fd910717ab735818ef265c9372e Mon Sep 17 00:00:00 2001 From: milk54 Date: Sun, 18 Sep 2016 19:11:41 +0900 Subject: [PATCH] Tabs: Remove presentation role Fixes #10122 Closes gh-1748 --- tests/unit/tabs/core.js | 3 +-- ui/widgets/tabs.js | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/unit/tabs/core.js b/tests/unit/tabs/core.js index f367b098e..0716160bb 100644 --- a/tests/unit/tabs/core.js +++ b/tests/unit/tabs/core.js @@ -101,7 +101,7 @@ QUnit.test( "aria-controls", function( assert ) { } ); QUnit.test( "accessibility", function( assert ) { - assert.expect( 49 ); + assert.expect( 46 ); var element = $( "#tabs1" ).tabs( { active: 1, disabled: [ 2 ] @@ -118,7 +118,6 @@ QUnit.test( "accessibility", function( assert ) { panel = panels.eq( index ); assert.equal( tab.attr( "role" ), "tab", "tab " + index + " role" ); assert.equal( tab.attr( "aria-labelledby" ), anchorId, "tab " + index + " aria-labelledby" ); - assert.equal( anchor.attr( "role" ), "presentation", "anchor " + index + " role" ); assert.equal( anchor.attr( "tabindex" ), -1, "anchor " + index + " tabindex" ); assert.equal( panel.attr( "role" ), "tabpanel", "panel " + index + " role" ); assert.equal( panel.attr( "aria-labelledby" ), anchorId, "panel " + index + " aria-labelledby" ); diff --git a/ui/widgets/tabs.js b/ui/widgets/tabs.js index 0dd165d4a..58a65ebe8 100644 --- a/ui/widgets/tabs.js +++ b/ui/widgets/tabs.js @@ -431,7 +431,6 @@ $.widget( "ui.tabs", { return $( "a", this )[ 0 ]; } ) .attr( { - role: "presentation", tabIndex: -1 } ); this._addClass( this.anchors, "ui-tabs-anchor" );