I'm new to Salesforce Apex and struggling a bit on some nuances. My problem is all the Salesforce components like knowledge:categoryList
or knowledge:articleList
are wrapped with extra span
elements when get rendered, which is far from what initially needed. Things like:
<ul>
<span>
<li>One</li>
<li>Two</li>
<li>Three</li>
</span>
</ul>
are semantically wrong at least, but further more they are breaking the markup when using libraries like Bootstrap
.
Is there a solution for this? Or maybe I am wrong at some point?
UPD Small example:
This...
<ul class="nav nav-tabs" role="tablist">
<knowledge:categoryList categoryVar="category" categoryGroup="Help" rootCategory="Using_{!selectedCategory}" level="1">
<li role="presentation">
<a href="#{!category.name}" aria-controls="basics" role="tab" data-toggle="tab">{!category.label}</a>
</li>
</knowledge:categoryList>
</ul>
...is rendered as...
<ul class="nav nav-tabs" role="tablist">
<span id="j_id0:j_id1:j_id37"> // <!-- how to remove this wrapper? -->
<li role="presentation">
<a href="#" aria-controls="basics" role="tab" data-toggle="tab">One</a>
</li>
<li role="presentation">
<a href="#" aria-controls="basics" role="tab" data-toggle="tab">Two</a>
</li>
<li role="presentation">
<a href="#" aria-controls="basics" role="tab" data-toggle="tab">Three</a>
</li>
</span> <!-- ??? -->
</ul>