11# Table of contents
22- [ ` 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 )
1111 - [ ` as-hiccup ` ] ( #hickory.core/as-hiccup ) - Converts the node given into a hiccup-format data structure.
1212 - [ ` as-hickory ` ] ( #hickory.core/as-hickory ) - Converts the node given into a hickory-format data structure.
1313 - [ ` extract-doctype ` ] ( #hickory.core/extract-doctype )
2727
2828
2929
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 >
3231
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 >
3532
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 >
3833
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+
4162
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 >
4463
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 >
4764
4865Objects that can be represented as Hiccup nodes implement this protocol in
4966 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+
5072
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 >
5373
5474Objects that can be represented as HTML DOM node maps, similar to
5575 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
6282 :attrs - node's attributes as a map, check :type to see if applicable
6383 :content - node's child nodes, in a vector, check :type to see if
6484 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 >
6588
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 >
6889
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 >
7194``` clojure
7295
7396(as-hiccup this)
7497```
75-
98+ Function.
7699
77100Converts the node given into a hiccup-format data structure. The
78101 node must have an implementation of the HiccupRepresentable
79102 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 >
80104
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 >
83106``` clojure
84107
85108(as-hickory this)
86109```
87-
110+ Function.
88111
89112Converts the node given into a hickory-format data structure. The
90113 node must have an implementation of the HickoryRepresentable protocol;
91114 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 >
92116
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 >
95118``` clojure
96119
97120(extract-doctype s)
98121```
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 >
99124
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 >
103126``` clojure
104127
105128(format-doctype dt)
106129```
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 >
107132
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 >
111134``` clojure
112135
113136(node-type type)
114137```
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 >
115140
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 >
119142``` clojure
120143
121144(parse s)
122145```
123-
146+ Function.
124147
125148Parse an entire HTML document into a DOM structure that can be
126149 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
137160
138161
139162
163+ <p ><sub ><a href =" https://github.com/clj-commons/hickory/blob/master/src/cljs/hickory/core.cljs#L151-L168 " >Source</a ></sub ></p >
140164
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 >
143166``` clojure
144167
145168(parse-dom-with-domparser s)
146169```
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 >
147172
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 >
151174``` clojure
152175
153176(parse-dom-with-write s)
154177```
155-
178+ Function.
156179
157180Parse 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 >
158182
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 >
161184``` clojure
162185
163186(parse-fragment s)
164187```
165-
188+ Function.
166189
167190Parse an HTML fragment (some group of tags that might be at home somewhere
168191 in the tag hierarchy under <body >) into a list of DOM elements that can
169192 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 >
170194
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 >
173196``` clojure
174197
175198(remove-el el)
176199```
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