Permalink
Browse files

Links: ID refs without hashtag for aria-owns attribute of links to po…

…pups. Fixes #6117.
  • Loading branch information...
jaspermdegroot committed Jul 4, 2013
1 parent 4b8827c commit 180a4045cb692feeb2cc115956c7eefb5c802dc8
Showing with 3 additions and 2 deletions.
  1. +3 −2 js/jquery.mobile.links.js
@@ -18,10 +18,11 @@ $.mobile._enhancer.add( "mobile.links", undefined, function( target ) {
.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() {

0 comments on commit 180a404

Please sign in to comment.