From e8d12733cf96d764290ca959462b6b351902aaa4 Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Wed, 17 Jan 2024 15:52:06 +0100 Subject: [PATCH] Fix if link in b,u or other elements and text directly after the parent element --- .../system/html/input/node/HtmlInputNodeProcessor.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php index 249303cb4d..2f9349d43f 100644 --- a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php +++ b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php @@ -807,8 +807,8 @@ class HtmlInputNodeProcessor extends AbstractHtmlNodeProcessor } if (!$mayContainOtherContent) { - $nextSibling = $this->getNoneEmptyNode($link, 'nextSibling'); - $previousSibling = $this->getNoneEmptyNode($link, 'previousSibling'); + $nextSibling = $this->getNoneEmptyNode($parentLinkElement, 'nextSibling'); + $previousSibling = $this->getNoneEmptyNode($parentLinkElement, 'previousSibling'); // Check whether the link is at the beginning or end of the paragraph // and whether the next or previous sibling is a line break. -- 2.20.1