Details
-
Bug
-
Resolution: Fixed
-
High
-
4.2.0
-
None
Description
http://issues.ez.no/IssueView.php?Id=15310&activeItem=4
<?xml version="1.0" encoding="utf-8"?> <section xmlns:image="http://ez.no/namespaces/ezpublish3/image/" xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/" xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/"> <paragraph><ul><li> <paragraph><link target="_blank" url_id="296">Accder la plate-forme boursre</link></paragraph> </li></ul></paragraph> </section>
Earlier versions properly skipped paragraphs in li elements in renderParagraph():
function renderParagraph( $element, $childrenOutput, $vars ) { // don't render if inside 'li' or inside 'td' (by option) $parent = $element->parentNode; if ( ( $parent->nodeName == 'li' && $parent->childNodes->length == 1 ) || ( $parent->nodeName == 'td' && $parent->childNodes->length == 1 && !$this->RenderParagraphInTableCells ) ) { return $childrenOutput; }