Bug #70488
closedf:form.submit creates invalid HTML
100%
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.
Updated by Gerrit Code Review about 9 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/44135
Updated by Gerrit Code Review about 9 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/44135
Updated by Gerrit Code Review about 9 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/44135
Updated by Gerrit Code Review about 9 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/44135
Updated by Anonymous about 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 92301f24a5f93b6a67688aafbd61813f918886f0.