[TYPO3-core] FYI: Fixed bug #15326: htmlArea RTE: W3C Markup Validation issues
Jigal van Hemert
jigal at xs4all.nl
Sat Sep 4 20:14:26 CEST 2010
Hi,
Thanks for making the RTE a bit better, again.
On 4-9-2010 18:50, Stanislas Rolland wrote:
> Two issues:
> 1. characters "[" and "]" not allowed in the value of attribute "id";
According to W3C:
ID and NAME tokens must begin with a letter ([A-Za-z]) and may be
followed by any number of letters, digits ([0-9]), hyphens ("-"),
underscores ("_"), colons (":"), and periods (".").
Maybe we should:
$textAreaId = preg_replace('/[^a-zA-Z0-9_:.-]/', '_',
$PA['itemFormElName']);
$textAreaId = htmlspecialchars(preg_replace('/^[^a-zA-Z]/', 'x',
$texAreaId));
--
Kind regards / met vriendelijke groet,
Jigal van Hemert
skype:jigal.van.hemert
msn: jigal at xs4all.nl
http://twitter.com/jigalvh
More information about the TYPO3-team-core
mailing list