Project

General

Profile

Actions

Bug #62940

closed

f:image width and height are 0 if attribute is not set in fluid for .svg images

Added by d.ros no-lastname-given over 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2014-11-14
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

What I've done

I have put this fluid

<f:image src="{settings.logoImage}" alt="Bild Logo" title="Logo" />

while settings.logoImage is an SVG. I do not want to set width and heigth and I don't want to have output on this attribute.

What happens

FE output is

<img title="Logo" alt="Bild Logo" src="/typo3conf/ext/myext/Resources/Public/Assets/IMAGES/logo.svg" width="0" height="0">

while default to width and height seems to be NULL if not set.

What is expected

FE output must be

<img title="Logo" alt="Bild Logo" src="/typo3conf/ext/myext/Resources/Public/Assets/IMAGES/logo.svg">

while width and height is not set and NULL the attribute should not be rendered.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #69863: Use new standalone Fluid as composer dependencyClosedClaus Due2015-09-16

Actions
Actions

Also available in: Atom PDF