1
1
# Table of contents
2
2
- [ ` hickory.core ` ] ( #hickory.core )
3
- - [ ` Attribute ` ] ( #hickory.core/Attribute )
4
- - [ ` Comment ` ] ( #hickory.core/Comment )
5
- - [ ` Document ` ] ( #hickory.core/Document )
6
- - [ ` DocumentType ` ] ( #hickory.core/DocumentType )
7
- - [ ` Element ` ] ( #hickory.core/Element )
8
- - [ ` HiccupRepresentable ` ] ( #hickory.core/HiccupRepresentable ) - Objects that can be represented as Hiccup nodes implement this protocol in order to make the conversion.
9
- - [ ` HickoryRepresentable ` ] ( #hickory.core/HickoryRepresentable ) - Objects that can be represented as HTML DOM node maps, similar to clojure.xml, implement this protocol to make the conversion.
10
- - [ ` Text ` ] ( #hickory.core/Text )
3
+ - [ ` Attribute ` ] ( #hickory.core/attribute )
4
+ - [ ` Comment ` ] ( #hickory.core/comment )
5
+ - [ ` Document ` ] ( #hickory.core/document )
6
+ - [ ` DocumentType ` ] ( #hickory.core/documenttype )
7
+ - [ ` Element ` ] ( #hickory.core/element )
8
+ - [ ` HiccupRepresentable ` ] ( #hickory.core/hiccuprepresentable ) - Objects that can be represented as Hiccup nodes implement this protocol in order to make the conversion.
9
+ - [ ` HickoryRepresentable ` ] ( #hickory.core/hickoryrepresentable ) - Objects that can be represented as HTML DOM node maps, similar to clojure.xml, implement this protocol to make the conversion.
10
+ - [ ` Text ` ] ( #hickory.core/text )
11
11
- [ ` as-hiccup ` ] ( #hickory.core/as-hiccup ) - Converts the node given into a hiccup-format data structure.
12
12
- [ ` as-hickory ` ] ( #hickory.core/as-hickory ) - Converts the node given into a hickory-format data structure.
13
13
- [ ` extract-doctype ` ] ( #hickory.core/extract-doctype )
27
27
28
28
29
29
30
- ## <a name =" hickory.core/Attribute " >` Attribute ` </a > [ :page_facing_up : ] ( https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L40-L40 )
31
- <a name =" hickory.core/Attribute " ></a >
30
+ ## <a name =" hickory.core/attribute " >` Attribute ` </a >
32
31
33
- ## <a name =" hickory.core/Comment " >` Comment ` </a > [ :page_facing_up : ] ( https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L41-L41 )
34
- <a name =" hickory.core/Comment " ></a >
35
32
36
- ## <a name =" hickory.core/Document " >` Document ` </a > [ :page_facing_up : ] ( https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L42-L42 )
37
- <a name =" hickory.core/Document " ></a >
38
33
39
- ## <a name =" hickory.core/DocumentType " >` DocumentType ` </a > [ :page_facing_up : ] ( https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L43-L43 )
40
- <a name =" hickory.core/DocumentType " ></a >
34
+ <p ><sub ><a href =" https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L52-L52 " >Source</a ></sub ></p >
35
+
36
+ ## <a name =" hickory.core/comment " >` Comment ` </a >
37
+
38
+
39
+
40
+ <p ><sub ><a href =" https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L53-L53 " >Source</a ></sub ></p >
41
+
42
+ ## <a name =" hickory.core/document " >` Document ` </a >
43
+
44
+
45
+
46
+ <p ><sub ><a href =" https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L54-L54 " >Source</a ></sub ></p >
47
+
48
+ ## <a name =" hickory.core/documenttype " >` DocumentType ` </a >
49
+
50
+
51
+
52
+ <p ><sub ><a href =" https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L55-L55 " >Source</a ></sub ></p >
53
+
54
+ ## <a name =" hickory.core/element " >` Element ` </a >
55
+
56
+
57
+
58
+ <p ><sub ><a href =" https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L56-L56 " >Source</a ></sub ></p >
59
+
60
+ ## <a name =" hickory.core/hiccuprepresentable " >` HiccupRepresentable ` </a >
61
+
41
62
42
- ## <a name =" hickory.core/Element " >` Element ` </a > [ :page_facing_up : ] ( https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L44-L44 )
43
- <a name =" hickory.core/Element " ></a >
44
63
45
- ## <a name =" hickory.core/HiccupRepresentable " >` HiccupRepresentable ` </a > [ :page_facing_up : ] ( https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L11-L17 )
46
- <a name =" hickory.core/HiccupRepresentable " ></a >
47
64
48
65
Objects that can be represented as Hiccup nodes implement this protocol in
49
66
order to make the conversion.
67
+ <p ><sub ><a href =" https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L12-L18 " >Source</a ></sub ></p >
68
+
69
+ ## <a name =" hickory.core/hickoryrepresentable " >` HickoryRepresentable ` </a >
70
+
71
+
50
72
51
- ## <a name =" hickory.core/HickoryRepresentable " >` HickoryRepresentable ` </a > [ :page_facing_up : ] ( https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L19-L34 )
52
- <a name =" hickory.core/HickoryRepresentable " ></a >
53
73
54
74
Objects that can be represented as HTML DOM node maps, similar to
55
75
clojure.xml, implement this protocol to make the conversion.
@@ -62,65 +82,68 @@ Objects that can be represented as HTML DOM node maps, similar to
62
82
:attrs - node's attributes as a map, check :type to see if applicable
63
83
:content - node's child nodes, in a vector, check :type to see if
64
84
applicable
85
+ <p ><sub ><a href =" https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L20-L35 " >Source</a ></sub ></p >
86
+
87
+ ## <a name =" hickory.core/text " >` Text ` </a >
65
88
66
- ## <a name =" hickory.core/Text " >` Text ` </a > [ :page_facing_up : ] ( https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L45-L45 )
67
- <a name =" hickory.core/Text " ></a >
68
89
69
- ## <a name =" hickory.core/as-hiccup " >` as-hiccup ` </a > [ :page_facing_up : ] ( https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L14-L17 )
70
- <a name =" hickory.core/as-hiccup " ></a >
90
+
91
+ <p ><sub ><a href =" https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L57-L57 " >Source</a ></sub ></p >
92
+
93
+ ## <a name =" hickory.core/as-hiccup " >` as-hiccup ` </a >
71
94
``` clojure
72
95
73
96
(as-hiccup this)
74
97
```
75
-
98
+ Function.
76
99
77
100
Converts the node given into a hiccup-format data structure. The
78
101
node must have an implementation of the HiccupRepresentable
79
102
protocol; nodes created by parse or parse-fragment already do.
103
+ <p ><sub ><a href =" https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L15-L18 " >Source</a ></sub ></p >
80
104
81
- ## <a name =" hickory.core/as-hickory " >` as-hickory ` </a > [ :page_facing_up : ] ( https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L31-L34 )
82
- <a name =" hickory.core/as-hickory " ></a >
105
+ ## <a name =" hickory.core/as-hickory " >` as-hickory ` </a >
83
106
``` clojure
84
107
85
108
(as-hickory this)
86
109
```
87
-
110
+ Function.
88
111
89
112
Converts the node given into a hickory-format data structure. The
90
113
node must have an implementation of the HickoryRepresentable protocol;
91
114
nodes created by parse or parse-fragment already do.
115
+ <p ><sub ><a href =" https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L32-L35 " >Source</a ></sub ></p >
92
116
93
- ## <a name =" hickory.core/extract-doctype " >` extract-doctype ` </a > [ :page_facing_up : ] ( https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L109-L114 )
94
- <a name =" hickory.core/extract-doctype " ></a >
117
+ ## <a name =" hickory.core/extract-doctype " >` extract-doctype ` </a >
95
118
``` clojure
96
119
97
120
(extract-doctype s)
98
121
```
122
+ Function.
123
+ <p ><sub ><a href =" https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L121-L126 " >Source</a ></sub ></p >
99
124
100
-
101
- ## <a name =" hickory.core/format-doctype " >` format-doctype ` </a > [ :page_facing_up : ] ( https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L50-L57 )
102
- <a name =" hickory.core/format-doctype " ></a >
125
+ ## <a name =" hickory.core/format-doctype " >` format-doctype ` </a >
103
126
``` clojure
104
127
105
128
(format-doctype dt)
106
129
```
130
+ Function.
131
+ <p ><sub ><a href =" https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L62-L69 " >Source</a ></sub ></p >
107
132
108
-
109
- ## <a name =" hickory.core/node-type " >` node-type ` </a > [ :page_facing_up : ] ( https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L36-L38 )
110
- <a name =" hickory.core/node-type " ></a >
133
+ ## <a name =" hickory.core/node-type " >` node-type ` </a >
111
134
``` clojure
112
135
113
136
(node-type type)
114
137
```
138
+ Function.
139
+ <p ><sub ><a href =" https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L37-L50 " >Source</a ></sub ></p >
115
140
116
-
117
- ## <a name =" hickory.core/parse " >` parse ` </a > [ :page_facing_up : ] ( https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L139-L156 )
118
- <a name =" hickory.core/parse " ></a >
141
+ ## <a name =" hickory.core/parse " >` parse ` </a >
119
142
``` clojure
120
143
121
144
(parse s)
122
145
```
123
-
146
+ Function.
124
147
125
148
Parse an entire HTML document into a DOM structure that can be
126
149
used as input to as-hiccup or as-hickory.
@@ -137,41 +160,42 @@ Parse an entire HTML document into a DOM structure that can be
137
160
138
161
139
162
163
+ <p ><sub ><a href =" https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L151-L168 " >Source</a ></sub ></p >
140
164
141
- ## <a name =" hickory.core/parse-dom-with-domparser " >` parse-dom-with-domparser ` </a > [ :page_facing_up : ] ( https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L120-L123 )
142
- <a name =" hickory.core/parse-dom-with-domparser " ></a >
165
+ ## <a name =" hickory.core/parse-dom-with-domparser " >` parse-dom-with-domparser ` </a >
143
166
``` clojure
144
167
145
168
(parse-dom-with-domparser s)
146
169
```
170
+ Function.
171
+ <p ><sub ><a href =" https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L132-L135 " >Source</a ></sub ></p >
147
172
148
-
149
- ## <a name =" hickory.core/parse-dom-with-write " >` parse-dom-with-write ` </a > [ :page_facing_up : ] ( https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L125-L137 )
150
- <a name =" hickory.core/parse-dom-with-write " ></a >
173
+ ## <a name =" hickory.core/parse-dom-with-write " >` parse-dom-with-write ` </a >
151
174
``` clojure
152
175
153
176
(parse-dom-with-write s)
154
177
```
155
-
178
+ Function.
156
179
157
180
Parse an HTML document (or fragment) as a DOM using document.implementation.createHTMLDocument and document.write.
181
+ <p ><sub ><a href =" https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L137-L149 " >Source</a ></sub ></p >
158
182
159
- ## <a name =" hickory.core/parse-fragment " >` parse-fragment ` </a > [ :page_facing_up : ] ( https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L158-L163 )
160
- <a name =" hickory.core/parse-fragment " ></a >
183
+ ## <a name =" hickory.core/parse-fragment " >` parse-fragment ` </a >
161
184
``` clojure
162
185
163
186
(parse-fragment s)
164
187
```
165
-
188
+ Function.
166
189
167
190
Parse an HTML fragment (some group of tags that might be at home somewhere
168
191
in the tag hierarchy under <body >) into a list of DOM elements that can
169
192
each be passed as input to as-hiccup or as-hickory.
193
+ <p ><sub ><a href =" https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L170-L175 " >Source</a ></sub ></p >
170
194
171
- ## <a name =" hickory.core/remove-el " >` remove-el ` </a > [ :page_facing_up : ] ( https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L116-L118 )
172
- <a name =" hickory.core/remove-el " ></a >
195
+ ## <a name =" hickory.core/remove-el " >` remove-el ` </a >
173
196
``` clojure
174
197
175
198
(remove-el el)
176
199
```
177
-
200
+ Function.
201
+ <p ><sub ><a href =" https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L128-L130 " >Source</a ></sub ></p >
0 commit comments