From 689fe2613765de71101214a482c928cfdb1b2be6 Mon Sep 17 00:00:00 2001 From: Asko Nõmm Date: Thu, 2 Jan 2025 01:30:23 +0200 Subject: Clean up some naming usages and things --- htmtl/attribute_parsers/inner_text.py | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 htmtl/attribute_parsers/inner_text.py (limited to 'htmtl/attribute_parsers/inner_text.py') diff --git a/htmtl/attribute_parsers/inner_text.py b/htmtl/attribute_parsers/inner_text.py deleted file mode 100644 index 75ad01e..0000000 --- a/htmtl/attribute_parsers/inner_text.py +++ /dev/null @@ -1,13 +0,0 @@ -from typing import Optional - -from dompa.nodes import Node, TextNode -from ..attribute_parser import AttributeParser - - -class InnerText(AttributeParser): - def traverse(self, node: Node) -> Optional[Node]: - if "inner-text" in node.attributes: - node.children = [TextNode(value=self.expression(node.attributes["inner-text"]))] - node.attributes.pop("inner-text") - - return node \ No newline at end of file -- cgit v1.2.3