Commit 82b0bb86 authored by Evan Simpson's avatar Evan Simpson

Re-fix stray attributes bug, and make a unit test for it.

parent f9ca9c73
...@@ -10,4 +10,5 @@ TAL changes ...@@ -10,4 +10,5 @@ TAL changes
Bugs Fixed Bugs Fixed
- tal:atributes was creating stray attributes in METAL
expansion, and there was no unit test for this behavior.
...@@ -329,7 +329,7 @@ class TALInterpreter: ...@@ -329,7 +329,7 @@ class TALInterpreter:
def attrAction(self, item): def attrAction(self, item):
name, value, action = item[:3] name, value, action = item[:3]
if action > 1 and not self.showtal: if action == 1 or (action > 1 and not self.showtal):
return 0, name, value return 0, name, value
ok = 1 ok = 1
if action == 2 and self.metal: if action == 2 and self.metal:
......
<span tal:attributes="class string:foo">Should not get attr in metal</span>
<span tal:attributes="class string:foo">Should not get attr in metal</span>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment