Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Synchronise xmlns extraction with TYPO3 CMS #264

Merged
merged 1 commit into from
Feb 15, 2017

Conversation

NamelessCoder
Copy link
Member

Due to slight differences in how Fluid detects xmlns declarations
in templates, TYPO3 CMS has had to deliver not one, but two
separate methods of detecting and registering namespaces.

This patch synchronises the behavior and removes the need for
TYPO3 CMS to process the template for namespaces.

There is one main difference introduced by this patch:

All xmlns declarations are now stripped from the tag; and the tag
itself is stripped away if data-namespace-typo3-fluid="true"
is set on the tag.

Due to slight differences in how Fluid detects xmlns declarations
in templates, TYPO3 CMS has had to deliver not one, but two
separate methods of detecting and registering namespaces.

This patch synchronises the behavior and removes the need for
TYPO3 CMS to process the template for namespaces.

There is one main difference introduced by this patch:

All xmlns declarations are now stripped from the tag; and the tag
itself is stripped away if `data-namespace-typo3-fluid="true"`
is set on the tag.
@NamelessCoder
Copy link
Member Author

Pinging @kitsunet - you may be able to remove a couple of files if you bump the Fluid version requirement to the up-coming 2.3.0 release (which I will make if/when this PR gets merged).

More precisely:

And of course all usages of those. The behaviors they provide should all be supported by Fluid itself after this PR. Removing them should also improve performance slightly (it's always good to not need a pre-processing step!).

@mneuhaus mneuhaus merged commit 5e296f7 into TYPO3:master Feb 15, 2017
@NamelessCoder NamelessCoder deleted the cleanupnamespacedetection branch February 15, 2017 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants