Project

General

Profile

Actions

Bug #15283

closed

FORM with image buttons doesn't validate as XHTML

Added by Peter Klein almost 19 years ago. Updated almost 17 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Communication
Target version:
-
Start date:
2005-12-14
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #16116: Accessibility error: input type="image"ClosedMartin Kutschker2006-05-03

Actions
Actions #1

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

Actions #2

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.

Actions #3

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.

Actions #4

Updated by Ralf Hettinger almost 17 years ago

Although this report here is indeed very old, I think it is partially related to #16289

Actions #5

Updated by Martin Kutschker almost 17 years ago

Has been fixed already (2006-06-28).

Actions

Also available in: Atom PDF