File tree 4 files changed +12
-7
lines changed
4 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 1
1
{:paths [" src/clj" " src/cljc" " src/cljs" ]
2
2
:deps
3
3
{org.clojure/clojure {:mvn/version " 1.11.1" }
4
- org.jsoup/jsoup {:mvn/version " 1.14.3 " }} ; hold back jsoup upgrade due to graal incompatibility
4
+ org.jsoup/jsoup {:mvn/version " 1.19.1 " }}
5
5
:aliases
6
6
{:test {:extra-paths [" test/cljc" ]}
7
7
:cljs {:extra-deps {org.clojure/clojurescript {:mvn/version " 1.11.60" }}}
Original file line number Diff line number Diff line change 11
11
12
12
:dependencies [[org.clojure/clojure " 1.11.1" ]
13
13
[org.clojure/clojurescript " 1.11.60" :scope " provided" ]
14
- [org.jsoup/jsoup " 1.15.2 " ]]
14
+ [org.jsoup/jsoup " 1.19.1 " ]]
15
15
16
16
:source-paths [" src/clj" " src/cljc" " src/cljs" ]
17
17
Original file line number Diff line number Diff line change 7
7
DocumentType Element TextNode XmlDeclaration]
8
8
[org.jsoup.parser Tag Parser]))
9
9
10
+ (set! *warn-on-reflection* true )
11
+
10
12
(defn- end-or-recur [as-fn loc data & [skip-child?]]
11
13
(let [new-loc (-> loc (zip/replace data) zip/next (cond-> skip-child? zip/next))]
12
14
(if (zip/end? new-loc)
68
70
DocumentType
69
71
(as-hiccup
70
72
([this] (trampoline as-hiccup this (hzip/hiccup-zip this)))
71
- ([this loc] (end-or-recur as-hiccup loc (utils/render-doctype (.attr this " name" )
72
- (.attr this " publicid" )
73
- (.attr this " systemid" )))))
73
+ ([this loc]
74
+ (end-or-recur as-hiccup loc (utils/render-doctype (.name this)
75
+ (.publicId this)
76
+ (.systemId this)))))
74
77
Element
75
78
(as-hiccup
76
79
([this] (trampoline as-hiccup this (hzip/hiccup-zip this)))
Original file line number Diff line number Diff line change 16
16
17
17
(is (= {:type :document ,
18
18
:content [{:type :document-type ,
19
- :attrs {:name " html" , :publicid " " , :systemid " " }}
19
+ :attrs {:name " html" , :publicid " " , :systemid " "
20
+ #?@(:clj [:#doctype " html" ])}}
20
21
{:type :element ,
21
22
:attrs nil,
22
23
:tag :html ,
57
58
58
59
(is (= {:type :document ,
59
60
:content [{:type :document-type ,
60
- :attrs {:name " html" , :publicid " " , :systemid " " }}
61
+ :attrs {:name " html" , :publicid " " , :systemid " "
62
+ #?@(:clj [:#doctype " html" ])}}
61
63
{:type :element ,
62
64
:attrs nil,
63
65
:tag :html ,
You can’t perform that action at this time.
0 commit comments