diff --git a/js/jquery.mobile.links.js b/js/jquery.mobile.links.js index c2dffd53b33..1c4ef6a097b 100644 --- a/js/jquery.mobile.links.js +++ b/js/jquery.mobile.links.js @@ -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() {