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