From: Alexander Ebert Date: Thu, 2 Jan 2020 15:48:49 +0000 (+0100) Subject: Incorrect DOM element access X-Git-Tag: 5.2.1~29 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5e9689fb0279c25ad55e86db177e07a96e725b1f;p=GitHub%2FWoltLab%2FWCF.git Incorrect DOM element access --- diff --git a/wcfsetup/install/files/lib/system/html/node/HtmlNodePlainLink.class.php b/wcfsetup/install/files/lib/system/html/node/HtmlNodePlainLink.class.php index 6e084bb112..a04419c5fb 100644 --- a/wcfsetup/install/files/lib/system/html/node/HtmlNodePlainLink.class.php +++ b/wcfsetup/install/files/lib/system/html/node/HtmlNodePlainLink.class.php @@ -157,7 +157,7 @@ class HtmlNodePlainLink { } // Replace the top level parent with the link itself, which will be replaced with the bbcode afterwards. - $this->topLevelParent->insertBefore($this->link, $this->topLevelParent); + $this->topLevelParent->parentNode->insertBefore($this->link, $this->topLevelParent); DOMUtil::removeNode($this->topLevelParent); }