Bug #23334
closed
htmlArea RTE: W3C Markup Validation issues
Added by Frank Frewer over 14 years ago.
Updated about 6 years ago.
Description
In conjunction with extensions based an extbase / fluid the RTE produces tags with ID's which are not valid:
<div id="pleasewaittx_meyxt_pi1[myobject][myfield] ...
<div id="editorWraptx_meyxt_pi1[myobject][myfield] ...
<textarea id="RTEareatx_meyxt_pi1[myobject][myfield] ...
The W3C Markup Validator says:
character "[" is not allowed in the value of attribute "id"
(issue imported from #M15326)
Files
The attached patch fixes the issue. Please confirm.
Note that square brackets are allowed in id in HTML 5.
The patch is okay. No validator error at this point anymore.
Thank you very much.
But there are two other validator errors which have nothing to do with extbase / fluid:
- required attribute "rows" not specified
- required attribute "cols" not specified
The html output:
<textarea id="RTEareatx_myext_pi1_myobject__myfield__1" name="tx_myext_pi1[myobject][myfield]" style="position:relative; left:0px; top:0px; height:380px; width:460px; border: 1px solid black;">
Should I open a new issue for this?
The attributes are added with zero values by second version of the patch.
Please confirm that the second version of the patch fixes both issues.
The second version of the patch fixes both issues.
Thank you very much.
Thanks for testing. Committed to SVN TYP3core trunk (revision 8758) and branch TYPO3_4-4 (revision 8759).
Attached follow-up patch committed to ensure that the id of the textarea is always valid:
trunk (revision 8778)
branch TYPO3_4-4 (revision 8779)
Thanks to Jigal van Hemert.
- Status changed from Resolved to Closed
Also available in: Atom
PDF