DLynch has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/366286 )

Change subject: LinkCache: parsoid element styling, detect selflink fragments
......................................................................

LinkCache: parsoid element styling, detect selflink fragments

Selflinks with fragments aren't actually selflinks, and so shouldn't be styled
as such.

Bug: T170943
Change-Id: Icb67c81327769d09af6bcfe593843d9dd2bcc33c
---
M modules/ve-mw/init/ve.init.mw.LinkCache.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor 
refs/changes/86/366286/1

diff --git a/modules/ve-mw/init/ve.init.mw.LinkCache.js 
b/modules/ve-mw/init/ve.init.mw.LinkCache.js
index cfdca0c..f4ec4df 100644
--- a/modules/ve-mw/init/ve.init.mw.LinkCache.js
+++ b/modules/ve-mw/init/ve.init.mw.LinkCache.js
@@ -128,7 +128,7 @@
                                title = 
ve.init.platform.linkCache.constructor.static.normalizeTitle(
                                        
ve.dm.MWInternalLinkAnnotation.static.getTargetDataFromHref( href, doc ).title
                                );
-                               ve.init.platform.linkCache.styleElement( title, 
$( this ) );
+                               ve.init.platform.linkCache.styleElement( title, 
$( this ), href.indexOf( '#' ) !== -1 );
                        } );
        }
 };

-- 
To view, visit https://gerrit.wikimedia.org/r/366286
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icb67c81327769d09af6bcfe593843d9dd2bcc33c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: DLynch <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to