Skip to content

Commit 271419a

Browse files
authored
Allow html parsing in textnode
2 parents 0effd80 + f83c4bc commit 271419a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155

156156
$GLOBALS['wgServiceWiringFiles'][] = __DIR__ . '/includes/ServiceWiring.php';
157157

158-
$GLOBALS['wgExtensionFunctions'][] = static function() {
158+
$GLOBALS['wgExtensionFunctions'][] = static function () {
159159
$hookContainer = \MediaWiki\MediaWikiServices::getInstance()->getHookContainer();
160160
$runner = new \MWStake\MediaWiki\Component\CommonUserInterface\Setup();
161161
$hookContainer->register( 'SiteNoticeAfter', [ $runner, 'onSiteNoticeAfter' ] );

resources/templates/tree-text-node.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<li{{#id}} id="{{.}}"{{/id}} class="mws-tree-item{{class}}" {{#role}} role="{{.}}"{{/role}}>
22
<div>
3-
{{#expandBtn}}<a class="mws-tree-expander{{class}}" role="button" tabindex="0" aria-label="{{text}}"{{#id}} aria-controls="{{.}}-children"{{/id}}{{#hasChildren}} aria-expanded="{{expanded}}" aria-haspopup="true"{{/hasChildren}}></a>{{/expandBtn}}<span id="{{labelId}}" class="mws-tree-item-label{{#isNew}} new{{/isNew}}" tabindex="0">{{text}}</span>
3+
{{#expandBtn}}<a class="mws-tree-expander{{class}}" role="button" tabindex="0" aria-label="{{text}}"{{#id}} aria-controls="{{.}}-children"{{/id}}{{#hasChildren}} aria-expanded="{{expanded}}" aria-haspopup="true"{{/hasChildren}}></a>{{/expandBtn}}<span id="{{labelId}}" class="mws-tree-item-label{{#isNew}} new{{/isNew}}" tabindex="0">{{{text}}}</span>
44
</div>
55
{{#hasChildren}}
66
<ul {{#id}} id="{{.}}-children"{{/id}} class="mws-tree mws-tree-item-children{{#expanded}} show{{/expanded}}" role="tree" aria-labelledby="{{labelId}}" tabindex="0">

0 commit comments

Comments
 (0)