summaryrefslogtreecommitdiff
path: root/htmtl/parsers/when.py
diff options
context:
space:
mode:
Diffstat (limited to 'htmtl/parsers/when.py')
-rw-r--r--htmtl/parsers/when.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/htmtl/parsers/when.py b/htmtl/parsers/when.py
index 57a965a..249e5b0 100644
--- a/htmtl/parsers/when.py
+++ b/htmtl/parsers/when.py
@@ -6,9 +6,9 @@ from ..parser import Parser
class When(Parser):
def traverse(self, node: Node) -> Optional[Node]:
if "when" in node.attributes:
- if not self.expression(node.attributes["when"]):
+ if not self.parse_expression(node.attributes["when"]):
return None
node.attributes.pop("when")
- return node \ No newline at end of file
+ return node