[FEATURE] Remove ViewHelper xmlns-attributes and specified html tag 72/38472/43
authorAndreas Allacher <andreas.allacher@gmx.at>
Sat, 4 Apr 2015 05:24:56 +0000 (05:24 +0000)
committerFrank Nägler <typo3@naegler.net>
Mon, 1 Jun 2015 15:45:49 +0000 (17:45 +0200)
commit5f3462a1ddaf7979768684ab649dd7dd80887fa7
tree77a8e8a19972842cb0a3d6372ddf1032df55f6fc
parent6718818a04ef229ac65c8824a2b7268ffe59f1f3
[FEATURE] Remove ViewHelper xmlns-attributes and specified html tag

In order to include ViewHelper namespaces with xmlns:*-attributes
it is currently required to use e.g. a HTML tag to allow code-completion
by an IDE. The tag itself will also be rendered.
To avoid rending the tag, workarounds are necessary.
One is to use sections, but this approach is counter-intuitive and has
rendering overhead due to extra sections being used. Additionally it is
not possible to use this workaround in layouts.

This patch introduces new functionality to remove all xmlns-attributes
which match ViewHelper namespaces.
For HTML output, we introduce a new attribute, which will cause Fluid
to remove the HTML-tag as well.
The attributes is called >data-namespace-typo3-fluid="true"<

Change-Id: I709d17da86cd79b7b3ba5c83b3f2bd6df8e2bd98
Releases: master
Resolves: #66269
Reviewed-on: http://review.typo3.org/38472
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Daniel Schmidt <daniel@netz-basis.com>
Tested-by: Daniel Schmidt <daniel@netz-basis.com>
Reviewed-by: Frank Nägler <typo3@naegler.net>
Tested-by: Frank Nägler <typo3@naegler.net>
typo3/sysext/core/Documentation/Changelog/master/Feature-66269-FluidRemoveViewHelperXmlnsAttributesAndSpecifiedHtmlTag.rst [new file with mode: 0644]
typo3/sysext/fluid/Classes/Core/Parser/TemplateParser.php
typo3/sysext/fluid/Tests/Unit/Core/Parser/TemplateParserTest.php