Issue Bug Closed

#15283FORM with image buttons doesn't validate as XHTML

Peter Klein 12/14/05, 21:11 updated 01/27/08, 19:08

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###

image = IMAGE
image.file = media/emoticons/smile.gif
}

page.10 < lib.formtest

(issue imported from #M2043)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.