Bug #20040
closedLinks are extended to the end of line under certain circumstances
0%
Description
This happened after I copied page from a website, pasted it into the RTE and edited a link that appeared somewhere in the text.
After setting the link, it got extended to the end of the current line.
As far as I can tell, it seems to happen if the line with the link is ended with a <br />, immediately followed by a line break (but even then it happened not always).
I was able to reproduce it as followed:
- create new text content element on some page
- enter two lines:
These are some words.
Some more words.
- link the word 'some' in the first line to something (I used http://example.com).
- toggle HTML source, replace the </p><p> between the lines with a <br /> and a line break.
- toggle HTML source
- put cursor inside the link, edit link (I added ?x=y to the link target)
- after saving with 'set link', the rest of the line (i.e. 'words' and also the ending <br />) was linked as well.
TYPO 4.2.6
Server: Windows 2003 Server, Apache 2.2.11 and PHP 5.2.8
Client: both Windows 2003 Server and Windows XP
Browser: Firefox 3.0.6
(issue imported from #M10470)