Bug #44140

Unlucky JavaScript syntax can break inline tags

Added by Aske Ertmann almost 9 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
ViewHelpers
Target version:
-
Start date:
2012-12-20
Due date:
% Done:

0%

Estimated time:
Has patch:
No

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 JavaScriptClosed2010-07-15

Actions
Related to TYPO3.Fluid - Feature #43356: Allow Fluid arrays only in ViewHelper argumentsResolvedSebastian Kurfuerst2012-11-27

Actions
Has duplicate TYPO3.Fluid - Bug #45071: Fluid tries to parse inside an in-HTML Javascript codeClosed2013-02-01

Actions
#1

Updated by Christian Müller over 7 years 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