summaryrefslogtreecommitdiff
path: root/htmtl/attribute_parsers/inner_text.py
diff options
context:
space:
mode:
Diffstat (limited to 'htmtl/attribute_parsers/inner_text.py')
-rw-r--r--htmtl/attribute_parsers/inner_text.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/htmtl/attribute_parsers/inner_text.py b/htmtl/attribute_parsers/inner_text.py
index bd98010..9195802 100644
--- a/htmtl/attribute_parsers/inner_text.py
+++ b/htmtl/attribute_parsers/inner_text.py
@@ -1,9 +1,9 @@
from dompa.nodes import Node, TextNode
-from htmtl.attribute_parser import AttributeParser
+from ..attribute_parser import AttributeParser
class InnerText(AttributeParser):
def traverse(self, node: Node):
if "inner-text" in node.attributes:
- node.children = [TextNode(self.expression(node.attributes["inner-text"]))]
+ node.children = [TextNode(value=self.expression(node.attributes["inner-text"]))]
node.attributes.pop("inner-text") \ No newline at end of file