diff options
| author | Asko Nõmm <asko@nmm.ee> | 2025-01-09 21:43:58 +0200 |
|---|---|---|
| committer | Asko Nõmm <asko@nmm.ee> | 2025-01-09 21:43:58 +0200 |
| commit | 4a3208b8c16bf9b3857163f588e68b3ae505cd4b (patch) | |
| tree | 785c5eb94b1823f4f2cd282ff870cce8be8981cb /htmtl/parsers/inner_html.py | |
| parent | 0544f795700240e19219521b8b435424fa689a1c (diff) | |
Getting there
Diffstat (limited to 'htmtl/parsers/inner_html.py')
| -rw-r--r-- | htmtl/parsers/inner_html.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/htmtl/parsers/inner_html.py b/htmtl/parsers/inner_html.py index 60e90ca..df5f0f4 100644 --- a/htmtl/parsers/inner_html.py +++ b/htmtl/parsers/inner_html.py @@ -9,8 +9,9 @@ from ..parser import Parser class InnerHtml(Parser): def traverse(self, node: Node) -> Optional[Node]: if "inner-html" in node.attributes: - child_nodes = Dompa(self.expression(node.attributes["inner-html"])).nodes() + exp = self.parse_expression(node.attributes["inner-html"]) + child_nodes = Dompa(exp).get_nodes() node.children = child_nodes node.attributes.pop("inner-html") - return node
\ No newline at end of file + return node |
