Add a class to the <a> element of the interlanguage link
authorAmire80 <amir.aharoni@mail.huji.ac.il>
Sat, 10 Sep 2016 13:41:44 +0000 (16:41 +0300)
committerAmire80 <amir.aharoni@mail.huji.ac.il>
Wed, 28 Sep 2016 07:42:19 +0000 (07:42 +0000)
This will allow precise querying for this element in the DOM.
Some gadgets add other <a> elements, and this make querying
not precise. See bug T135378.

Change-Id: I06c80945af785477be52096022c8493e7f82c298

includes/skins/SkinTemplate.php

index ed7c6df..3efbd3b 100644 (file)
@@ -180,6 +180,7 @@ class SkinTemplate extends Skin {
                                        'text' => $ilLangName,
                                        'title' => $ilTitle,
                                        'class' => $class,
+                                       'link-class' => 'interlanguage-link-target',
                                        'lang' => $ilInterwikiCodeBCP47,
                                        'hreflang' => $ilInterwikiCodeBCP47,
                                ];