mediawiki-skins-MinervaNeue/includes/Skins/menuGroup.mustache
Piotr Miazga (polishdeveloper) 82724b3c44 Add data-mw="interface" attribute to Menu elements
While dropping support of smart logout in favour of core ready.js
logout, we noticed that the logout selector is a little bit too weak.
Editors could make a link on a page that would work as a logout
button. The easiest way to prevent this (and any other possible
problems) is to add `data-mw="interface"` attribute to all generated
menu entries.

Change-Id: I22611b9641d82328623beb3f693bf7cddb2289ff
2021-02-11 20:35:40 +00:00

7 lines
194 B
Plaintext

<li class="{{class}}">
{{#components}}
<a href="{{href}}" class="{{class}}"
data-mw="interface" data-event-name="{{data-event-name}}"><span>{{text}}</span></a>
{{/components}}
</li>