Wrap extension token so that it won't be exposed

Alternative to I6ea271a5d5c7b12a13bb12a682c39bcfd7b1f116

We can follow this up by passing the ExtensionTag to the
ExtensionTagHandler constructor.

Change-Id: I5b1b191bc85968ad617eb3ebcdd7721c55006af2
This commit is contained in:
Arlo Breault 2020-07-22 18:43:57 -04:00 committed by jenkins-bot
parent e29b51ebcc
commit cdf8ac149b

View file

@ -530,10 +530,10 @@ class References extends ExtensionTagHandler {
$docBody,
$refsOpts,
function ( $dp ) use ( $extApi ) {
$dp->src = $extApi->getExtSource();
$dp->src = $extApi->extTag->getSource();
// Setting redundant info on fragment.
// $docBody->firstChild info feels cumbersome to use downstream.
if ( $extApi->isSelfClosedExtTag() ) {
if ( $extApi->extTag->isSelfClosed() ) {
$dp->selfClose = true;
}
}