From 9c3764da653f288ebb87acfbdd590e12baae0957 Mon Sep 17 00:00:00 2001 From: "J. King" Date: Sun, 14 Feb 2021 15:44:05 -0500 Subject: [PATCH] Stub of adoption agency --- lib/TreeBuilder.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/TreeBuilder.php b/lib/TreeBuilder.php index b37e52d..a43577e 100644 --- a/lib/TreeBuilder.php +++ b/lib/TreeBuilder.php @@ -1384,6 +1384,16 @@ class TreeBuilder { return true; } + protected function adopt(TagToken $token): void { + # The adoption agency algorithm, which takes as its only argument a + # token 'token' for which the algorithm is being run, consists of + # the following steps: + + // STUB + + assert(false, new \Exception("Adoption agency not implemented yet")); + } + protected function parseTokenInForeignContent(Token $token): bool { $currentNode = $this->stack->currentNode; $currentNodeName = $this->stack->currentNodeName;