From 5e9689fb0279c25ad55e86db177e07a96e725b1f Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 2 Jan 2020 16:48:49 +0100 Subject: [PATCH] Incorrect DOM element access --- .../files/lib/system/html/node/HtmlNodePlainLink.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.20.1