Bug #30005
closedstdWrap.cropHTML wrong on full-word crop shortly inside HTML-element
0%
Description
When using full-word crop (don't within a word) and when inside a HTML-element (like description of a link) the function fails on the first word.
Testcase (for tests/typo3/sysext/cms/tslib/class.tslib_contentTest.php):
$charset . ' text with full-word-crop shortly inside html-element 26|...|1' => array(
'26|...|1', 'Some text with a link to <a href="mailto:email.address@example.org">my email-address</a> and text after it', 'Some text with a link to <a href="mailto:email.address@example.org">...</a>', $charset
),
Actual result (inside link): m...
Expected result: ...
If you raise the limit to 27 (include full word "my") or 28 (word and space after it, space gets cropped correctly) everything is fine. But when the first word itself is not full it should leave out that word completely.
Updated by Alexander Opitz almost 10 years ago
- Status changed from New to Needs Feedback
- Is Regression set to No
Hi,
as this issue is very old. Does the problem still exists within newer versions of TYPO3 CMS (6.2.7)?
Updated by Riccardo De Contardi over 9 years ago
Tested with 6.2.12:
page.1 = TEXT page.1.value ( Welcome blah blah blah on email <a href="mailto:email.address@example.org">email.address@example.org</a> blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah )
Test n.1:
page.1.cropHTML = 20|...|1
Result: Welcome blah blah...
Test n.2:
page.1.cropHTML = 50|...|1
Result: Welcome blah blah blah on email email.address@exam... (the link is respected and full working)
Test n.2:
page.1.cropHTML = 80|...|1
Result: Welcome blah blah blah on email email.address@example.org blah blah blah blah...(the link is respected and full working)
Is this sufficient?
Updated by Mathias Schreiber over 9 years ago
- Status changed from Needs Feedback to Closed