Project

General

Profile

Actions

Bug #70488

closed

f:form.submit creates invalid HTML

Added by Alex Kellner about 9 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2015-10-08
Due date:
% Done:

100%

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

Description

Because of #70486 we found a strange behaviour of submit buttons which are rendered from through <f:form.submit />.
It it seems that there is a problem with empty name attributes in submit buttons.

Using a submit ViewHelper like this:

<f:form.submit value="submit now" />

Leads to a HTML:

<input type="submit" value="submit now" name="" />

Following W3C (see https://validator.w3.org/nu/#textarea) it's ok to have a submit button without a name attribute, but it's not ok to have an empty name attribute.
If someone wants to send an additional value, you can use the name attribute with a value, but in most of all use-cases a name attribute is not needed in the submit button.
We need to disable the rendering of empty name attributes.

Actions

Also available in: Atom PDF