Project

General

Profile

Actions

Bug #18692

closed

TypoLinks with a title set are generated wrong

Added by Thomas Keller about 16 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
Content Rendering
Target version:
-
Start date:
2008-04-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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&quot; 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)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #20142: class and title parameters of typolinks get brokenClosedStanislas Rolland2009-03-06

Actions
Actions #1

Updated by Thomas Keller about 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...

Actions #2

Updated by Stanislas Rolland about 14 years ago

See 0010629

Actions #3

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF