Merge "LinkCache: styleParsoidElements find mw:WikiLink with ~="

This commit is contained in:
jenkins-bot 2018-03-09 21:44:51 +00:00 committed by Gerrit Code Review
commit 04e5f6f208

View file

@ -125,7 +125,7 @@ ve.init.mw.LinkCache.prototype.styleParsoidElements = function ( $elements, doc
// If the element isn't attached, doc will be null, so we don't know how to normalise titles
if ( doc ) {
$elements
.find( 'a[rel="mw:WikiLink"]' ).addBack( 'a[rel="mw:WikiLink"]' )
.find( 'a[rel~="mw:WikiLink"]' ).addBack( 'a[rel~="mw:WikiLink"]' )
.each( function () {
var title,
href = this.href || mw.config.get( 'wgArticlePath' );