Bug #22014
closed
Change default emptyTitleHandling to "removeAttr"
Added by Robert Heel almost 15 years ago.
Updated over 7 years ago.
Description
emptyTitleHandling default in css_styled_content has changed from "useAlt" to "removeAttr". This default should change in cms (class.tslib_content.php), too.
If this is kept because of backward compatibility, a global config option would be nice.
(issue imported from #M13338)
Files
- Description updated (diff)
- Status changed from New to Needs Feedback
- TYPO3 Version set to 4.5
- 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)?
Seems still open; The file typo3/sysext/cms/tslib/class.tslib_content.php does not exist in TYPO3 6.2.11; The file /typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
contains the lines:
$altParam = ' alt="' . htmlspecialchars($altText) . '"';
// "title":
$emptyTitleHandling = 'useAlt';
$emptyTitleHandling = isset($conf['emptyTitleHandling.']) ? $this->stdWrap($conf['emptyTitleHandling'], $conf['emptyTitleHandling.']) : $conf['emptyTitleHandling'];
// Choices: 'keepEmpty' | 'useAlt' | 'removeAttr'
if ($titleText || $emptyTitleHandling == 'keepEmpty') {
$altParam .= ' title="' . htmlspecialchars($titleText) . '"';
} elseif (!$titleText && $emptyTitleHandling == 'useAlt') {
$altParam .= ' title="' . htmlspecialchars($altText) . '"';
}
- Category set to Frontend
- Status changed from Needs Feedback to New
- Status changed from New to Needs Feedback
AFAICS on both TYPO3 v. 7.6 and 8 the $emptyTitleHandling = 'useAlt';
has been removed, so it should no more be set as default.
Do you think that it is sufficient to close the issue? Thank you!
- Status changed from Needs Feedback to Closed
No feedback within the last 90 days => closing this issue.
If you think that this is the wrong decision or experience this issue again or have more information about how to reproduce it, then please reopen it or open a new ticket and add a relation to this ticket number.
Thank you!
Also available in: Atom
PDF