Bug #78844
closedHTML5: use self-closing tags only if allowed
100%
Description
In the frontend rendering of RTE content, empty tags should only be converted to self-closing tags if allowed by the HTML5 standard.
The Problem ist that e.g.
<a id="myspecialanchor"></a>
is converted to
<a id="myspecialanchor" />
which will result in the subsequent content being rendered as a link, too (at least in Google Chrome).
This Problem exists in TYPO3 7.6 and 8.
This is because only specific tags may be self-closing according to the HTML5 specification:
https://www.w3.org/TR/html5/syntax.html#void-elements
Void elements: area, base, br, col, embed, hr, img, input, keygen, link, meta, param, source, track, wbr
The following line should be fixed:
Moreover, the a notice should be added to the todo-comment in following line
Updated by Gerrit Code Review almost 8 years ago
- Status changed from New to Under Review
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50812
Updated by Gerrit Code Review almost 8 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50889
Updated by Gerrit Code Review almost 8 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50889
Updated by Gerrit Code Review almost 8 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50812
Updated by Gerrit Code Review almost 8 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50889
Updated by Gerrit Code Review over 7 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50812
Updated by Gerrit Code Review over 7 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50812
Updated by Oliver Hader about 7 years ago
- Category changed from 1050 to Frontend
Updated by Gerrit Code Review almost 7 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50812
Updated by Gerrit Code Review almost 7 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55664
Updated by Anonymous almost 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 4830763a5b8aa30a3dc52c179993eb2be8c1a5e0.