From 4849330560eb5b16a6db17df9c211fb7751f9f14 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 25 Sep 2016 23:46:51 +0200 Subject: [PATCH] Fixed handling of dynamically removed nodes --- .../html/input/node/HtmlInputNodeWoltlabMetacode.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeWoltlabMetacode.class.php b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeWoltlabMetacode.class.php index 4870748bf6..4c67812b78 100644 --- a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeWoltlabMetacode.class.php +++ b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeWoltlabMetacode.class.php @@ -66,6 +66,12 @@ class HtmlInputNodeWoltlabMetacode extends AbstractHtmlInputNode { /** @var \DOMElement $element */ foreach ($elements as $element) { + if ($element->parentNode === null) { + // ignore elements that existed, but have been removed + // from the DOM due to action taken by a converter + continue; + } + $name = $element->getAttribute('data-name'); if ($name === 'abstract') { continue; -- 2.20.1