http://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692019-01-09T11:13:21ZTYPO3 ForgeTYPO3 Core - Bug #87325: Unexpected behavior when there is no text in f:link.pagehttp://forge.typo3.org/issues/87325?journal_id=3932562019-01-09T11:13:21ZStefanos Karasavvidis
<ul></ul><p>I tried your example on the latest master, on current LTS 9 and LTS 8, and can't reproduce it.</p>
<p>In all cases, I get just a single empty a tag of the form</p>
<pre><code class="html syntaxhl" data-language="html"><span class="nt"><a</span> <span class="na">href=</span><span class="s">"/index.php?id=362"</span> <span class="nt">/></span>
</code></pre>
<p>The complete generated code is</p>
<pre><code class="html syntaxhl" data-language="html"> <span class="nt"><div</span> <span class="na">id=</span><span class="s">"my-div"</span><span class="nt">></span>
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"indicator hidden-xs"</span> <span class="na">title=</span><span class="s">"Search"</span><span class="nt">></span>
<span class="nt"><a</span> <span class="na">href=</span><span class="s">"index.php?id=1"</span> <span class="nt">/></span>
<span class="nt"></div></span>
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"my-div-content"</span><span class="nt">></div></span>
<span class="nt"></div></span>
</code></pre>
<p>Note the self closing /> at the end of the a element. It doesn't make sense, but is valid. There are no additional a tags generated.</p>
<p>Please also note that the browser may get confused and use following elements as part of the link. But that would be a browser issue.</p>
<p>So could you please elaborate on your test case and make it more specific? Make also sure to view the generated source, and not try to use your browsers element inspector to view the generated source.</p> TYPO3 Core - Bug #87325: Unexpected behavior when there is no text in f:link.pagehttp://forge.typo3.org/issues/87325?journal_id=3932572019-01-09T11:14:35ZAnja Leichsenring
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Needs Feedback</i></li></ul> TYPO3 Core - Bug #87325: Unexpected behavior when there is no text in f:link.pagehttp://forge.typo3.org/issues/87325?journal_id=3979202019-04-10T10:03:51ZRiccardo De Contardierredeco@gmail.com
<ul><li><strong>Status</strong> changed from <i>Needs Feedback</i> to <i>Closed</i></li></ul><p>No feedback since the last 90 days => closing this issue.</p>
<p>If you think that this is the wrong decision or experience the issue again and have more information about how to reproduce your problem, please reopen it or open a new issue with a reference to this one.</p>
<p>Thank you and best regards</p>