ChangesList: Remove spaces from <td> in EnhancedChangesListGroup.mustache
authorFomafix <fomafix@googlemail.com>
Sun, 10 Feb 2019 20:01:25 +0000 (21:01 +0100)
committerKrinkle <krinklemail@gmail.com>
Tue, 12 Feb 2019 00:06:48 +0000 (00:06 +0000)
commit9c5a4773952f2e914eda668b71dedb7c78a9a258
tree1fcb95b77c5f6cd532c94574946635cafb3559a7
parentd056d4c273a069d572ceb2160346ee697d7b87de
ChangesList: Remove spaces from <td> in EnhancedChangesListGroup.mustache

The special page RecentChanges can included in wiki content via

  {{Special:RecentChanges}}

In this case the generated content is parsed by a wikitext parser. The
wikitext parser converts

  <td>
    <span>Foo</span>
  </td>

to the HTML

  <td><p><span>Foo</span></p></td>

But the wikitext

  <td><span>Foo</span></td>

is converted to the HTML

  <td><span>Foo</span></td>

The module 'jquery.makeCollapsible' supports custom collapsible toggle
buttons but only when they are a direct child of the <td> element. When
the module does not find a custom collapsible toggle button it adds the
default button [Expand].

Because of the additional <p> element when including the recent changes
the module 'jquery.makeCollapsible' adds a default collapsible toggle
button.

This change removes the spaces between <td> and <span> to prevent the
<p> elements when including the recent changes.

Bug: T215737
Change-Id: Ida46956fc7f9ab923c542751ac13411380c02ab0
includes/templates/EnhancedChangesListGroup.mustache