Dev: Include closed body and html tags in getTrail

This will allow us to render in Storybook without having issues
with unclosed tags. it also mirrors how html-headelement works
(obscuring the opening of the body and html tags)

Bug: T240062
Bug: T242674
Change-Id: I216a920c68bf3da9de55a75fc53451c68c9cc753
This commit is contained in:
jdlrobson 2020-01-16 13:52:56 -08:00 committed by Jdlrobson
parent 746c05a0d1
commit 9f82f58ea9
2 changed files with 1 additions and 3 deletions

View File

@ -112,7 +112,7 @@ class VectorTemplate extends BaseTemplate {
// From MWDebug::getHTMLDebugLog (when $wgShowDebug is enabled)
'html-debuglog' => $this->get( 'debughtml', '' ),
// From BaseTemplate::getTrail (handles bottom JavaScript)
'html-printtail' => $this->getTrail(),
'html-printtail' => $this->getTrail() . '</body></html>',
];
// TODO: Convert the rest to Mustache

View File

@ -32,5 +32,3 @@
{{! html-unported outputs <div id="mw-navigation"> and <div id="footer"> }}
{{{html-unported}}}
{{{html-printtail}}}
</body>
</html>