Merge "Narrow selector for links when adding _blank"

This commit is contained in:
jenkins-bot 2021-08-31 12:42:36 +00:00 committed by Gerrit Code Review
commit 9d0c480529

View file

@ -15,7 +15,7 @@
*/
ve.ui.MWDismissibleMessageWidget = function VeUiMWDismissibleMessageWidget( config ) {
var $label = config.message.parseDom();
$label.filter( 'a' ).attr( 'target', '_blank' );
$label.filter( 'a[href]' ).attr( 'target', '_blank' );
// eslint-disable-next-line no-jquery/variable-pattern
config.label = $label;