Fix if link in b,u or other elements and text directly after the parent element
authorCyperghost <olaf_schmitz_1@t-online.de>
Wed, 17 Jan 2024 14:52:06 +0000 (15:52 +0100)
committerOlaf Braun <info@braun-development.de>
Thu, 7 Mar 2024 15:36:44 +0000 (16:36 +0100)
wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php

index 249303cb4d94cfd527db560119b2a417f648b3da..2f9349d43fdc6d459b7c75c30cb061afa7e282f8 100644 (file)
@@ -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.