Project

General

Profile

Actions

Bug #84970

closed

data-namespace-typo3-fluid doesn't work if no NS defined in <html> tag

Added by Bill Dagou over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2018-05-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

With the template below

<html xmlns="http://www.w3.org/1999/xhtml" 
        lang="en" 
        data-namespace-typo3-fluid="true">
{test}
</html>

the HTML tag would NOT get removed, because

$matched = preg_match('/<([a-z0-9]+)(?:[^>]*?)\\s+' . $namespacePattern . '[^>]*>/', $templateSource, $matches);
returns FALSE in \TYPO3Fluid\Fluid\Core\Parser\TemplateProcessor\NamespaceDetectionTemplateProcessor::registerNamespacesFromTemplateSource().

It works in TYPO3 v7.

Actions

Also available in: Atom PDF