TAL blocks inside <style> result in parse error
Bug #452259 reported by
Wichert Akkerman
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Invalid
|
Wishlist
|
Unassigned | ||
Zope 3 |
Won't Fix
|
Undecided
|
Unassigned | ||
grok |
Won't Fix
|
Undecided
|
Unassigned | ||
zope.tal |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I am trying to create some conditional CSS. This renders correctly:
<tal:block>
<style type="text/css">
</style>
</tal:block>
but this results in a NestingError:
<style type="text/css">
<tal:block>
</tal:block>
</style>
This might be related to #143103.
Changed in zope3: | |
status: | New → Won't Fix |
Changed in zope2: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
Changed in grok: | |
status: | New → Won't Fix |
To post a comment you must log in.
The mystery continues. Take this simple bit of markup:
<style type="text/css" tal:define="logo webhelpers/ sector_ logo" tal:condition= "python: logo">
background: url(<tal:block replace="logo"/>) no-repeat;
#navigation li#home {
}
</style>
the rendered output of that is:
<style type="text/css">
background: url(<tal:block replace="logo"/>) no-repeat;
#navigation li#home {
}
</style>
For some reason the TAL statement is not executed.