Actions
Bug #14732
closedXHTML compliance of FORM objects (label tag)
Start date:
2005-05-14
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
3.8.0rc1
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
In XHTML [ are not allowed for ids (strictly speaking they never were even for HTML). When turning on acessibility a" label" tag with a "for" attribute is generated (which contains the id of the form element).
TYPO3 uses the same value for id and name of the form element. But the [ and ] are not allowed. A solution MAY be to quote the square brackets with numeric entities.
If this is not allowed/possible then the ids must be auto-generated. I suggest form name plus md5-hash of the field name. If the form name contains invalid characters we should do a fall-back to a random prefix.
(issue imported from #M1075)
Files
Updated by Martin Kutschker over 19 years ago
Entity quoting does not help. We need to go the hash way.
Updated by Martin Kutschker over 19 years ago
Attached patch which uses formname and fieldname-hash.
Actions