From: Alexander Ebert Date: Thu, 8 Dec 2016 20:08:34 +0000 (+0100) Subject: Fixed incorrect behavior for empty lists X-Git-Tag: 3.0.0_RC_1~68 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2577daa3b6d4c10fad66ff3ca040cd56c1cecea8;p=GitHub%2FWoltLab%2FWCF.git Fixed incorrect behavior for empty lists --- diff --git a/wcfsetup/install/files/lib/system/html/metacode/converter/ListMetacodeConverter.class.php b/wcfsetup/install/files/lib/system/html/metacode/converter/ListMetacodeConverter.class.php index 449a296ed8..eee4f0a6fe 100644 --- a/wcfsetup/install/files/lib/system/html/metacode/converter/ListMetacodeConverter.class.php +++ b/wcfsetup/install/files/lib/system/html/metacode/converter/ListMetacodeConverter.class.php @@ -132,7 +132,8 @@ class ListMetacodeConverter extends AbstractMetacodeConverter { } } - if ($isEmpty) { + // discard the
  • unless it is the only one + if ($isEmpty && $childNode->parentNode->firstChild !== $childNode) { DOMUtil::removeNode($childNode); } }