updateTooltipAccessKeys() uses the native accessKeyLabel property which,
in Firefox, isn't available until after the node is inserted into the
document.
Bug: 67946
Change-Id: I3b80174e2f5df1c9082d30607dbe9b63ede6b5b5
}
if ( tooltip ) {
- $link.attr( 'title', tooltip ).updateTooltipAccessKeys();
+ $link.attr( 'title', tooltip );
}
if ( nextnode ) {
$ul.append( $item );
}
+ // Update tooltip for the access key after inserting into DOM
+ // to get a localized access key label (bug 67946).
+ $link.updateTooltipAccessKeys();
+
return $item[0];
},