Bug #7518

FLuid breaks on HTML data-* attributes

Added by Morton Jonuschat about 12 years ago. Updated over 11 years ago.

Won't have this time
Target version:
Start date:
Due date:
% Done:


Estimated time:
Has patch:


Trying to use HTML5 data-* attributes in Fluid ViewHelpers breaks rendering in different ways, depending on the ViewHelper called.

For example f:link.action doesn't parse the tag completly, rendering breaks with "You closed a templating tag which you never opened!"

Adding a data-* attribute to f:form.textbox results in the unparsed tag being put into the resulting html.

Regarding the use of data-* tags see the official W3 documentation:


Bug experienced on Extbase/Fluid included with TYPO3 4.4.0beta1


Updated by Jochen Rau about 12 years ago

  • Assignee set to Sebastian Kurfuerst

Updated by Sebastian Kurfuerst almost 12 years ago

  • Assignee deleted (Sebastian Kurfuerst)
  • Priority changed from Should have to Could have

This is because all Fluid tag attributes need to be registered properly, and this has not been registered.

Normally, you can use additionalAttributes to add additional tag attributes, but I guess that the "-" in the identifier is not supported. That's why I'll leave this ticket open for now.


Updated by Sebastian Kurfuerst almost 12 years ago

  • Project changed from 534 to TYPO3.Fluid
  • Category deleted (431)

Updated by Sebastian Kurfuerst almost 12 years ago

  • Status changed from New to Closed
  • Priority changed from Could have to Won't have this time


I have just checked again, and Fluid indeed supports the "-" as valid array key. So, the following should work (additionalAttributes works on all TagBased view helpers):

<f:link.action ..... additionalAttributes="{data-foo: '12345', data-bar: 'blahblah'}">...</f:link.action>

That's why I'm closing this ticket for now. If it does not work, feel free to re-open it.


Also available in: Atom PDF