When setting the firstClass and/or lastClass options to null or an empty string, like this:
{{ knp_menu_render('AcmeDemoBundle:Builder:mainMenu', { 'firstClass': null, 'lastClass': null }) }}
A menu with the following class attributes is rendered:
<ul>
<li class="current ">...</li>
<li class="">...</li>
</ul>
Even though this is completely valid markup, it would be nice if the trailing space after the class current would be gone, as well as the empty class attributes:
<ul>
<li class="current">...</li>
<li>...</li>
</ul>
When setting the
firstClassand/orlastClassoptions tonullor an empty string, like this:A menu with the following
classattributes is rendered:Even though this is completely valid markup, it would be nice if the trailing space after the class
currentwould be gone, as well as the emptyclassattributes: