From c3c62d780457a2fa1de1ab80ba66fdd1c82d6520 Mon Sep 17 00:00:00 2001 From: Asko Nõmm Date: Sun, 19 Oct 2025 17:50:06 +0300 Subject: #1: Fixes an issue where self-closing elements would break the attrs parsing --- test/dompa/coordinates_test.cljc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/dompa/coordinates_test.cljc') diff --git a/test/dompa/coordinates_test.cljc b/test/dompa/coordinates_test.cljc index 85a4518..79248e3 100644 --- a/test/dompa/coordinates_test.cljc +++ b/test/dompa/coordinates_test.cljc @@ -107,6 +107,14 @@ coordinates/compose coordinates/unify coordinates/->nodes)))) + + (testing "Create nodes from self-closing tags" + (is (= [{:node/name :hr + :node/attrs {}}] + (-> "
" + coordinates/compose + coordinates/unify + coordinates/->nodes)))) (testing "Create nodes with attributes" (is (= [{:node/name :div -- cgit v1.2.3