From cdf8ac149b40fa6cdb5f4529da804fbdd613e4d5 Mon Sep 17 00:00:00 2001 From: Arlo Breault Date: Wed, 22 Jul 2020 18:43:57 -0400 Subject: [PATCH] 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 --- src/Parsoid/References.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Parsoid/References.php b/src/Parsoid/References.php index 6f618b931..b996b1b86 100644 --- a/src/Parsoid/References.php +++ b/src/Parsoid/References.php @@ -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; } }