Issue Bug Closed

#91194Faulty follow-up tag detection in parseFunc & Co. (regression)

Joschi Kuphal 04/25/20, 12:11 updated 05/12/20, 13:08

Description

As of version 10.4.0, the ContentObjectRenderer fails to parse <abbr> elements correctly that are nested within <a> element. The reason is sort of an edge case but presumably this might happen with other element combinations as well. Basically, the problem is that the start elements for links and abbreviations both start with “<a” and the parsing routines don’t consider the remainder when scanning for matching follow-up elements.

There are two spots in ContentObjectRenderer that need to get fixed. The patch illustrates the problem (and a possible solution), but obviously something better than Regex might be used.

Reviews 1