[TYPO3-rte] how to eliminate alt="undefined" in link icons?
Stephan Bernhard
grac at gmx.ch
Fri Nov 8 09:08:43 CET 2013
On 08.11.2013 08:59, bernd wilke wrote:
> Am 08.11.13 08:21, schrieb Stephan Bernhard:
>> hi list
>>
>> nobody seems to answer?!
>>
>> another attempt to clear my situation (TYPO3 version 4.5.28, rtehtmlarea
>> version 2.1.7).
>>
>> my page TS configuration:
>>
>> RTE.classesAnchor.internalLinkInNewWindow {
>> class = internal-link-new-window
>> type = page
>> image = fileadmin/.../img/icons/internal_link_new_window.gif
>> altText =
>> titleText =
>> }
>>
>> and here is a resulting test-link:
>>
>> <p>
>> <a class="internal-link-new-window" target="_self"
>> href="testseiten/textformatierung/">
>> <img src="fileadmin/.../img/icons/internal_link_new_window.gif"
>> alt="undefined"> interner Link neues Fenster
>> </a>
>> </p>
>>
>> my question is: why does rtehtmlarea replace an empty altText attribute
>> with "undefined"?
>>
>> thanks again for any hint and help
>
> 'undefined' like 'undefined variable'?
> I would expect some bug in the javascript where a variable is undefined
> instead of empty. or better: where an attribute is written, so the value
> is not filled at all.
> maybe the condition tests the variable against empty string and the
> access to the undefined variable returns (by automatic typecasting) the
> string 'undefined' which is inserted afterwards.
>
> bernd
@bernd
exactly!
the accessibility icons don't need an alt attribute like "link opens in
a new window"
so therefore it's totally superfluous!
and doesn't need an alt="undefined"...
stephan
More information about the TYPO3-project-rte
mailing list