Issue Bug Closed

#92756RTE - fixAttrib to A-link not applied when link is inside list

Andreas Moeller 11/03/20, 08:30 updated 02/19/22, 16:33

Description

1. Setup the following TypoScript:

lib.parseFunc_RTE.nonTypoTagStdWrap.HTMLparser.tags.ul.fixAttrib.class {
    default = myownclass
    always = 1
}

2. Add the following content inside a RTE

<p><a href="t3://page?uid=1">Link number one</a></p>

<ul>
    <li><a href="t3://page?uid=1">Link insude a list</a></li>
</ul>

3. Watch the results in Frontend

Expected behaviour:
The first AND the second link have an additional class “myownclass”

<p><a href="/" class="myownclass">Link number one</a></p><ul><li><a href="/" class="myownclass">Link insude a list</a></li></ul>

Actual hevaviour:
Only the first link has the additional class “myownclass”

<p><a href="/" class="myownclass">Link number one</a></p><ul><li><a href="/">Link insude a list</a></li></ul>

Version: TYPO3 9.5.22

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.