span.allowedAttribs not taken into account
Own defined attibutes are not working in a <span> tag although they are configured in 'span.allowedAttribs' in pageTSConfig
It lookes like that only the attributes that are defined here:https://forge.typo3.org/projects/typo3cms-core/repository/revisions/master/entry/typo3/sysext/core/Classes/Html/RteHtmlParser.php#L1196 are taken into account and the span.allowedAttribs in pageTSConfig is not taken into account.
#1 Updated by Riccardo De Contardi over 2 years ago
this issue is still present on 7.6.11;
To test it:
1) set in TSConfig
RTE.default.proc.entryHTMLparser_db.tags.span.allowedAttribs = id, title, dir, lang, xml:lang, class, itemscope, itemtype, itemprop,style,aria-hidden
2) in RTEHtmlarea, add somewhere a span with this attributes:
<span style="background:red" aria-hidden="true">LOREM</span>
only the style attribute will survive on frontend.
Note that if you use the RTEHtmlarea button "Insert tag", you will be presented a very long list of attributes (like onFocus, onBlur, onClick, onMouseOver....) but the same limitation described in this issue applies, so why listing them?