Bug #44140

Unlucky JavaScript syntax can break inline tags

Added by Aske Ertmann over 2 years ago. Updated over 1 year ago.

Status:Resolved Start date:2012-12-20
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:ViewHelpers
Target version:-
Has patch:No Affected Flow version:Git master

Description

After troubleshooting a problem with econic, we have found an issue that can break the parsing of inline tags. The problem originated from using JavaScript in a template, which broke all inline view helpers after the JavaScript. After boiling down to the core problem, it seems that it doesn't have anything to do with the JavaScript itself but instead using {} and indentation.

The original issue source: http://pastebin.com/pkCjwUHd

Snippets for reproducing the problem:
https://gist.github.com/4341615
https://gist.github.com/4341668

In my case I needed at least 16 tabs or 16 spaces for it to break, but econic only needed 13.

The result in both cases is: {collection -> f:count()} {f:count(subject: collection)}
0


Related issues

related to TYPO3.Fluid - Bug #8879: { } when using as JavaScript Closed 2010-07-15
related to TYPO3.Fluid - Feature #43356: Allow Fluid arrays only in ViewHelper arguments Resolved 2012-11-27
duplicated by TYPO3.Fluid - Bug #45071: Fluid tries to parse inside an in-HTML Javascript code Closed 2013-02-01

History

#1 Updated by Christian Müller over 1 year ago

  • Status changed from New to Resolved

Should be resolved via http://forge.typo3.org/issues/43356

Otherwise please reopen if necessary.

Also available in: Atom PDF