[TYPO3-core] RFC: Fix for supporting style url() path transformation / templavoila bug #1669

Kasper Skårhøj kasper2005 at typo3.com
Wed Nov 2 17:50:41 CET 2005

That section is meant to substitute url(...) ONLY inside a <style> section and 
k is never 1 because you have no style section.

So where you propose is to execute the regex over the WHOLE content, tags and 
everything. That is much slower and of course it will cause errors if 
innocent content contains any text like "url(...)". 

So it s a no-go. The only true solution would be to parse the content a second 
time for all occurencies of a style-attribute and run the code on that - or 
some other way of making sure that only content in style-attributes are 

- kasper

Think future, not feature

More information about the TYPO3-team-core mailing list