Project

General

Profile

Bug #104432

Updated by Philipp Kuhlmay 8 days ago

In @EXT:sysext/core/Classes/ViewHelpers/IconViewHelper.php@ according to the doc header examples the following code: 
 <pre> 
 <core:icon title="Open actions menu" alt="Menu icon" identifier="actions-menu" /> 
 </pre> 
 should output the following: 
 <pre> 
 <span title="Open actions menu" alt="Menu icon" class="t3js-icon icon icon-size-small icon-state-default icon-actions-menu" data-identifier="actions-menu" aria-hidden="true"> 
     <span class="icon-markup"> 
         <img src="/typo3/sysext/core/Resources/Public/Icons/T3Icons/actions/actions-menu.svg" width="16" height="16"> 
     </span> 
 </span> 
 </pre> 

 but in fact it outputs this: 
 <pre> 
 <span title="Open actions menu" alt="Menu icon" class="t3js-icon icon icon-size-small icon-state-default icon-actions-menu" data-identifier="actions-menu" aria-hidden="true"> 
   <span class="icon-markup"> 
     <svg class="icon-color"><use xlink:href="/typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-menu"></use></svg> 
   </span> 	
 </span> 
 </pre> 

 So it outputs an svg instead of the img-tag. Either the example or the output code is wrong. 


 I use the main branch with TYPO3 13 and the latest commits. Nothing special.

Back