]> source.dussan.org Git - jquery-ui.git/commitdiff
Tabs: Remove presentation role
authormilk54 <milk851@gmail.com>
Sun, 18 Sep 2016 10:11:41 +0000 (19:11 +0900)
committerScott González <scott.gonzalez@gmail.com>
Thu, 29 Sep 2016 14:15:19 +0000 (10:15 -0400)
Fixes #10122
Closes gh-1748

tests/unit/tabs/core.js
ui/widgets/tabs.js

index f367b098e180c44951a68c379abaa711b95c74e4..0716160bbee82aba31fb764ad7bcc8dd5cab7b6d 100644 (file)
@@ -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" );
index 0dd165d4a01b29573f9564810594b68e55adf5fc..58a65ebe806c793758549d444ba0c31013d784f6 100644 (file)
@@ -431,7 +431,6 @@ $.widget( "ui.tabs", {
                        return $( "a", this )[ 0 ];
                } )
                        .attr( {
-                               role: "presentation",
                                tabIndex: -1
                        } );
                this._addClass( this.anchors, "ui-tabs-anchor" );