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

Commit 180a404

Browse files
Links: ID refs without hashtag for aria-owns attribute of links to popups. Fixes #6117.
1 parent 4b8827c commit 180a404

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

js/jquery.mobile.links.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ $.mobile._enhancer.add( "mobile.links", undefined, function( target ) {
1818
.each( function() {
1919
// Accessibility info for popups
2020
var e = this,
21-
href = $( this ).attr( "href" );
21+
href = $( this ).attr( "href" ),
22+
idref = href.substring( 1 );
2223

2324
e.setAttribute( "aria-haspopup", true );
24-
e.setAttribute( "aria-owns", href );
25+
e.setAttribute( "aria-owns", idref );
2526
e.setAttribute( "aria-expanded", false );
2627
$( document )
2728
.on( "popupafteropen", href, function() {

0 commit comments

Comments
 (0)