Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Links: ID refs without hashtag for aria-owns attribute of links to po…
Browse files Browse the repository at this point in the history
…pups. Fixes #6117.
  • Loading branch information
jaspermdegroot committed Jul 4, 2013
1 parent 8e61a4e commit b75b313
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/jquery.mobile.links.js
Expand Up @@ -18,10 +18,11 @@ $( document ).bind( "pagecreate create", function( e ) {
.each( function() {
// Accessibility info for popups
var e = this,
href = $( this ).attr( "href" );
href = $( this ).attr( "href" ),
idref = href.substring( 1 );

e.setAttribute( "aria-haspopup", true );
e.setAttribute( "aria-owns", href );
e.setAttribute( "aria-owns", idref );
e.setAttribute( "aria-expanded", false );
$( document )
.on( "popupafteropen", href, function() {
Expand Down

0 comments on commit b75b313

Please sign in to comment.