[TYPO3-core] FYI: Fixed bug #15326: htmlArea RTE: W3C Markup Validation issues

Stanislas Rolland typo3 at sjbr.ca
Mon Sep 13 03:56:23 CEST 2010


Hi Jigal,
>
> 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));
>
Indeed. Thanks for the review.

The attached follow-up patch was committed to trunk (revision 8778) and
branch TYPO3_4-4 (revision 8779).

Kind regards,
Stan

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rtehtmlarea_bugfix_15326_follow_up_trunk.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100912/e7720800/attachment-0001.txt>


More information about the TYPO3-team-core mailing list