Bug #15283
closedFORM with image buttons doesn't validate as XHTML
0%
Description
When an image button is used for submitting a standard Typo3 FORM element, the button (type="image") is rendered with WIDTH, HEIGHT & BORDER attributes, which prevents the page from validating..
The example below illustrates the problem.
lib.formtest = FORM
lib.formtest {
dataArray {
10.label = Name:
10.type = name=input
10.value = [Enter name]
10.required = 1
20.label = Eyecolor
20.type = eyecolor=select
20.valueArray {
10.label = Blue
10.value = 1
20.label = Red
20.value = 2
20.selected = 1
}
40.type = submit=submit
40.value = Submit
}
accessibility = 1
layout = ###LABEL### ###FIELD###<br />
image = IMAGE
image.file = media/emoticons/smile.gif
}
page.10 < lib.formtest
(issue imported from #M2043)
Updated by Sebastian Kurfuerst almost 19 years ago
What exactly is the problem? That width and height and border is forbidden generally for the image tag, or is it spelled with capital letters? (don't think so).
Greets, Sebastian
Updated by Peter Klein almost 19 years ago
The button is not an IMG tag, but an INPUT tag (with type="image")
And according to W3C specs then you can't have WIDTH, HEIGHT & BORDER attributes on an input tag.
Updated by Martin Kutschker almost 19 years ago
This is true. The image gets render as IMAGE cObj and then simply <img is replaced by <input.
Updated by Ralf Hettinger almost 17 years ago
Although this report here is indeed very old, I think it is partially related to #16289
Updated by Martin Kutschker almost 17 years ago
Has been fixed already (2006-06-28).