Bug #18692
closedTypoLinks with a title set are generated wrong
0%
Description
If an editor creates an external link to a website and gives this website a title, the resulting typolink.parameter is generated wrongly.
From the TSRef I know that - if at all - a title should be rendered, this should be the fourth space-separated parameter in the parameter line (http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/5/8/), however, the link browser puts it as third parameter.
Predicted results:
www.foo.com Title of Foo (note the three spaces after the first parameter) www.foo.com _blank Title of Foo (note the two spaces after the second parameter)
Actual results:
www.foo.com Title of Foo (look, only two spaces here!) www.foo.com _blank Title of Foo (look, only one space here!)
The problem is that "Title of Foo" becomes the third parameter, which is the CSS class parameter by definition. If this link now has an additional class set via TS, f.e. ATagParams = class="my_link_class", the final link is rendered wrongly like this:
<a href="http://www.foo.com" class="Title of Foo" class="my_link_class">
Now, most browsers ignore the second class attribute and thus just render the link wrongly in the frontend.
(issue imported from #M8238)
Updated by Thomas Keller over 16 years ago
To actually see the space differences above, you may want to use Firefox' "show selected source" feature, because the browsers collapse several consecutive spaces into one during rendering...