[TYPO3-core] RFC #5896: Inserting a divider (<hr>) in the RTE breaks XHTML validation (and other things)
Stanislas Rolland
typo3 at sjbr.ca
Mon Dec 6 05:30:15 CET 2010
This is a SVN patch request.
Type: Bugfix
Problem:
Transformation and rendering of the hr element is messy: hr tag is
wrapped despite not being valid inside paragraphs, links get broken when
entered after an hr element, etc.
Solution:
1. Fix the RTE transformation (t3lib_parsehtml_proc):
1.1 Remove hr from $blockElementList;
1.2 Add hr to allowTagsOutside;
1.3 Wrap hr tags with LF on way to database
1.4 Avoid wrapping hr in paragraph on way to RTE.
2. Fix hr rendering (tslib_content):
2.1 Fix parseFunc handling of empty tags;
2.2 Fix encaps_lineSplit handling of empty tags (if on a single line)
(from patch by Bernhard Kraft)
3.0 Add hr to
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.encapsTagList
(css_styled_content static template).
Bugtracker references:
http://bugs.typo3.org/view.php?id=5896
http://bugs.typo3.org/view.php?id=10609
http://bugs.typo3.org/view.php?id=12851
http://bugs.typo3.org/view.php?id=12982
Branches:
trunk
TYPO3_4-4
Kind regards,
Stanislas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: typo3core_bugfix_5896_typo3_4-4.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101205/b4ed3f1a/attachment.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: typo3core_bugfix_5896_trunk.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101205/b4ed3f1a/attachment.txt>
More information about the TYPO3-team-core
mailing list