Skip to content

Commit 09d615e

Browse files
committed
1 parent fd96a3e commit 09d615e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,13 @@ protected function fixDom()
380380
$node = $node->nextSibling;
381381
continue;
382382
}
383+
} else {
384+
$textContent = StringUtil::trim($node->textContent);
385+
// Ignore any text node that only contains whitespace.
386+
if ($textContent === '') {
387+
$node = $node->nextSibling;
388+
continue;
389+
}
383390
}
384391

385392
$node = $appendToPreviousParagraph($node);

0 commit comments

Comments
 (0)