Permalink
Browse files

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

…pups. Fixes #6117.
1 parent 8e61a4e commit b75b3135f4c7409fb8b1dbe2ff9fe574d1c110c8 @jaspermdegroot jaspermdegroot committed Jul 4, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 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() {

0 comments on commit b75b313

Please sign in to comment.