Bug #64267
closed
parseFunc fails to parse void elements without whitespace before "/>"
Added by Steffen Müller almost 10 years ago.
Updated almost 8 years ago.
Description
Given the content "One<br>Two<br />Three<br/>Four"
And "br" is within the list of "lib.parseFunc.allowTags" TypoScript
When the content is parsed with "lib.parseFunc"
Then the parsed HTML should be: "One<br>Two<br />Three<br/>Four"
But instead the parsed HTML is "One<br>Two<br />Three <br/>Four"
HTML spec says, that whitespaces between tag name and "/" character are optional.
Start tags consist of the following parts, in exactly the following order:
A "<" character.
The element’s tag name.
Optionally, one or more attributes, each of which must be preceded by one or more space characters.
Optionally, one or more space characters.
Optionally, a "/" character, which may be present only if the element is a void element.
A ">" character.
http://w3c.github.io/html-reference/syntax.html#tag-name
- Subject changed from parseFunc fails to parse void elements without whitespace before / to parseFunc fails to parse void elements without whitespace before "/>"
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36004
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36004
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36018
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Under Review
- Status changed from Under Review to Closed
Accidently reopen due to wrong issue reference in gerrit. Closed.
Also available in: Atom
PDF