From: Alexander Ebert Date: Sun, 25 Sep 2016 21:46:51 +0000 (+0200) Subject: Fixed handling of dynamically removed nodes X-Git-Tag: 3.0.0_Beta_2~138 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4849330560eb5b16a6db17df9c211fb7751f9f14;p=GitHub%2FWoltLab%2FWCF.git Fixed handling of dynamically removed nodes --- 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;