[FEATURE] Add generic data-* attribute 90/32590/3
authorFrank Nägler <typo3@naegler.net>
Thu, 4 Sep 2014 21:18:03 +0000 (23:18 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 6 Sep 2014 18:27:48 +0000 (20:27 +0200)
commitc839a4dc25f5722b98d2b8deee96b379338d5ea6
tree536700eff7f0d646d8afafe30baf3ee0d0770ba2
parente6a688196b9436a7d35f19ec0cc9ee811de4fb4b
[FEATURE] Add generic data-* attribute

All elements in HTML5 can have any number of data-* attributes.
This additional array attribute on tag bases viewhelpers makes
it easier to add several data-* attributes to them:
  <f:form.textfield data="{foo: 'bar', baz: 'foos'}" />

Will render:
  <input data-foo="bar" data-baz="foos" ...

This is a backport from TYPO3.Fluid

Resolves: #61351
Related: #35748
Releases: 6.3
Change-Id: I3a6483e3293a7e18a3ee7fb5b04bf28bdb19d63d
Reviewed-on: http://review.typo3.org/32590
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Martin Sonnenholzer <martin.sonnenholzer@googlemail.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/fluid/Classes/Core/ViewHelper/AbstractTagBasedViewHelper.php
typo3/sysext/fluid/Tests/Unit/Core/ViewHelper/AbstractTagBasedViewHelperTest.php